From patchwork Fri Sep 3 06:49:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Pan, Xinhui" X-Patchwork-Id: 12473729 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BF231C433EF for ; Fri, 3 Sep 2021 06:49:58 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 89DF86102A for ; Fri, 3 Sep 2021 06:49:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 89DF86102A Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=amd.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 162E06E849; Fri, 3 Sep 2021 06:49:58 +0000 (UTC) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2057.outbound.protection.outlook.com [40.107.94.57]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3B3B86E849; Fri, 3 Sep 2021 06:49:57 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Qh/djx2uEfbd/JAlzisckY6qx6tHKOX5ulIbf89Vvv85bAyjpjuk8+jdh87Yfc7e0rZdm0U5gcfE4Y+1f1or7aXZzOrxm1Oz61o1aUNI5Qo/8+KqJRR/18+GnYns1yjCWH74tFcmrZZE8AnpvqSh7sxPfPcheknni7y7/Ic3WUWKppWfSMcZwVZ+f8aa2pAvilDpagMPSepdbaGdboOfwNxhNo3j5MI7nDJH6zBAoC/ePbc5NJuNySrwSlFEnudw9WoycemNKwu/aD3y47BGDl1yFloVcM7rHwoDoWwFyhQR6YPkGMEycFsYqQ0IlupJkSuBE74sYHBNGnffGqMxug== 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; bh=Tp/M/clNcWko/ApIkLoUXtgBRyNM+pXRMeVdnD/Ck6o=; b=VJQPqZUvUx1iKFyA8WQZgvlrN/iDE8zaqzapWqIOPsy6iMzlee2pM655jiymbd93oVmmq9R1geAbj4sgzi6JjAgqD7DyIMuQQscuk11AOf+7LXAh4dKWlLp5tXn4mI/ZhZ7PyJD5dps8jR9FicEJeg15GCOMjGuYlTtCsKkBj7wFdrkf8stalRyjmYlDDb3BwjbiAAU73EsEmLNgeC9MTw7ndmfMKIFXF27iUom6RzuU88SejrL/0zzUGx3dpc21EmHa1axUsQbs0bmdcZgDKmKCbyXhaezQLbFdy23tmDdn29j4A4mrANeJ8s336WFO7MMWnUdMxzeG0SE4hkr/DQ== 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=Tp/M/clNcWko/ApIkLoUXtgBRyNM+pXRMeVdnD/Ck6o=; b=JjS3kp3lXmZbaZTkpP7KKbgSShaBKbrfQ3s4OUuWDX7bBFyYRjxIgJQ0MbI9CyOPQvbXbpkqcuVxYQqEpeaF2WBAfQJXyxbU8D7fHpfbtgM2UMmXkkm6zLXHLlg1QZAvrPUflfdhl4Qg1aTr4ccFY+bQRtWSep4cxAyq/V64Q0M= Received: from DM4PR12MB5165.namprd12.prod.outlook.com (2603:10b6:5:394::9) by DM4PR12MB5039.namprd12.prod.outlook.com (2603:10b6:5:38a::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.19; Fri, 3 Sep 2021 06:49:55 +0000 Received: from DM4PR12MB5165.namprd12.prod.outlook.com ([fe80::79d6:3902:9bcd:37ca]) by DM4PR12MB5165.namprd12.prod.outlook.com ([fe80::79d6:3902:9bcd:37ca%9]) with mapi id 15.20.4478.022; Fri, 3 Sep 2021 06:49:55 +0000 From: "Pan, Xinhui" To: amd-gfx , "dri-devel@lists.freedesktop.org" CC: "Deucher, Alexander" , "Koenig, Christian" , "Grodzovsky, Andrey" , "daniel@ffwll.ch" Subject: [PATCH 2/2] drm/amdpgu: Use VRAM domain in UVD IB test Thread-Topic: [PATCH 2/2] drm/amdpgu: Use VRAM domain in UVD IB test Thread-Index: AQHXoI/nSfVQHdsoy0mdoJw6k5ntZA== Date: Fri, 3 Sep 2021 06:49:55 +0000 Message-ID: <88539BB5-333A-4019-A411-D09859291404@amd.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/10.1f.0.191110 authentication-results: lists.freedesktop.org; dkim=none (message not signed) header.d=none; lists.freedesktop.org; dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 75974e69-22c3-4cd6-9e07-08d96ea709cf x-ms-traffictypediagnostic: DM4PR12MB5039: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:64; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: k72q4GJUdfMMABc+VqrdtPSAq4G0ZMxA/mG82I4Mnf0873QQe/mf127zvEessJnNOrcZgOo5i7UDqebvKYNM/b/+XvP98JJYLTm9BTuJxZGxJDEjpCqIXY34qvgGUp4ylZ4V3mmButrycYtmw4HifkDJN8Zw27a8dhHsTWDa7dGMGOo51rgZu4rgDMU4zbU0upDST6m/KeHH46tHX3fAwVM6EIcKRlIx3NxrPQg3l2RrrkIOhk+Yg+e2SouRx64zindzg8xI3wyYvsoz6qj8S2vFEtEqNMIwgSsr04oHI5HHLOjF3NTzAwj4iZ8uq665RFCTvlbICR5HjmZDnq9RwmrrHW032IAQYjADtzAqR3rZZkvDqQ+/0fFlQvVQJeAKYYZRqMeJ88zud5VqJijWDOgxurbSDSDhRLVBdp5Is+2WoTEUSoBZhdow5k+PCodh1N9JYdLWAA0e/n6P9l0cGycKlsZ8vlsURyJE44tMICR0kzZyogh/IJ/OjIJJYmkqbZZm3sojcExzTXckGzc9Trp6nuZc2+iJAkEzhGR1uhaQZQ93LnUx4ECpSg7DMfshwRtUVYyMks7MlgZykelLZUIu1wFBD21ci3KZwO3ob9CSbYPLRbwXfQvwBYNIXtZqGcNQwCooQUGCxPSJgyCncOJ4OyxLLHBgZSJjwxJftQ6gSB7QMQtnolU7mTuMsFm0a/FbMZ/3fEhZOGBBGdJOVI2/mcBB917Jh4uwLXsYwR0= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5165.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(366004)(39860400002)(136003)(346002)(396003)(2906002)(91956017)(478600001)(5660300002)(33656002)(86362001)(4744005)(26005)(6506007)(122000001)(186003)(38100700002)(8936002)(8676002)(38070700005)(71200400001)(54906003)(83380400001)(110136005)(76116006)(66946007)(66446008)(66556008)(66476007)(316002)(64756008)(2616005)(6512007)(36756003)(6486002)(4326008)(45980500001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?q?1dME5ZCmqK7xhHqNbWXzfhIQoMcI?= =?utf-8?q?t98qU4xnEOuNhB01M8SMutg+sbIRn4KibCNNgvS+Def154n7HZOqgbSnhs0YKzBbT?= =?utf-8?q?JHanzKTyNGXaArtP/dNkx69kfgr+vZmU2J2+SL/1N9K5W1MQOMCa8m6X1k88ZbCqC?= =?utf-8?q?tKSxHViDiCqjNsy9GrB/xGAZoHcHogkUL/h3a8DZhfJbzjD+INutQq2DZhPOsJjQ9?= =?utf-8?q?YGJQ5G5owe2m8atFpoFNoE7kYErqz4H0T0dyQYTboZa3yEcz4HHZ2MpA/6Z4EFcYR?= =?utf-8?q?ddGOO9mfYr5Y25pZB4lf93Buaz/OeAfE5y2R7vO2U2k7AL1NOYLHluRMRFixWlCnK?= =?utf-8?q?AZt31xMmEOj+B/D8/SEuRlqdPdAOwXtB6/YbYcaSTdiZR7Kg6PhIxE0RJpvEMQazN?= =?utf-8?q?H1iXZgAf8RHMePCTUf4IX1+U5K+wf9t+t01QDxl4sKNcMthMGlYNNbUKR3N62bwCV?= =?utf-8?q?E3FpTTksUiNv56fdjkR7qyVDAVL7jeTCqiFbwlgS5XpRzFCBIxKDGnwTCpT63I8Ll?= =?utf-8?q?7TV952Ukp+v0h7sfLYwLeD0PVOsU7WegDEFT6wSFC0VffhWX1cWtxfok07EaSLnIg?= =?utf-8?q?89va25Nu9BW2RjXhzFw/GUirax0c+baVgSmw7S80hLiTc9dssBYFxtv4wfkNm9v3t?= =?utf-8?q?Zttzr2qK64Tjm9NYjx0diS+bF8mC+e1PmLnyXdLRrDxMeENtpBJ5c4hC1uBkSNXZi?= =?utf-8?q?eaJqVHX1GkDsdXWkDhz1pfLA7ElOD4or7u4uMG7EO7wfGsF2F1cPfbMjbC4Ta8sp4?= =?utf-8?q?HQxIDbbRP+UN0n1g2T2P0iHpKSBSidgaPiDHuxRHxfZRqBagzznkde2SuYQDnsgUo?= =?utf-8?q?lgg6QNffQK/EEwtZLeezcfPP7/y+5nvIYzzLpb0lHLK3BPAx+nv8Cm7E6SAc/h6mp?= =?utf-8?q?mkSDPoaAPM0cJM3Kt3gVgyRRPJs9xG4Im44f4jZrKYKCjGO+Dhq7w6AMjMAvcdSYV?= =?utf-8?q?Yy8J2QrP0mFr1n3Iyg/0lDTshOQQNfwP348fcCM4DRXGxqpjq7WoD2tJf3ZnadbKR?= =?utf-8?q?fvM453wLcom3ayGOP8cMNryjQmLR6AqutG6FZiU01Q5C6eQ2CWaAP/gKTsUpoW5cU?= =?utf-8?q?u3dOga/kWVvODj38ZKQAhbBf7QCEZHe/gv5EOFrEht6YCk56U2dEjKVuEf8RnRlOK?= =?utf-8?q?rSOAg7rCqE29EH52pE0Bfsjcopn7E/GtnlsLSJXRRxqaHlk84PXlfTWlg5TKwx8EW?= =?utf-8?q?dGE8lSB5/zylQXmlkZv/bjMxwxxlYzwErTtBI7qiatBUaLFnBn12k1W9jlY9/jJMl?= =?utf-8?q?CQc21Jir3d7JM8d7?= Content-ID: MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5165.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 75974e69-22c3-4cd6-9e07-08d96ea709cf X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Sep 2021 06:49:55.1168 (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: V4jwBxyxh+e8kKQ5VjsRIARN1YYjUGZAI407xyOWHnPKCNjXEiwM+pj4QJUUQ1Nc X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5039 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Like vce/vcn does, visible VRAM is ok for ib test. And in ib test stage, VRAM is sufficient. Signed-off-by: xinhui pan --- drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c index d451c359606a..1c099b79d12c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c @@ -1178,7 +1178,7 @@ int amdgpu_uvd_get_create_msg(struct amdgpu_ring *ring, uint32_t handle, int r, i; r = amdgpu_bo_create_reserved(adev, 1024, PAGE_SIZE, - AMDGPU_GEM_DOMAIN_GTT, + AMDGPU_GEM_DOMAIN_VRAM, &bo, NULL, (void **)&msg); if (r) return r; @@ -1210,7 +1210,7 @@ int amdgpu_uvd_get_destroy_msg(struct amdgpu_ring *ring, uint32_t handle, int r, i; r = amdgpu_bo_create_reserved(adev, 1024, PAGE_SIZE, - AMDGPU_GEM_DOMAIN_GTT, + AMDGPU_GEM_DOMAIN_VRAM, &bo, NULL, (void **)&msg); if (r) return r;