From patchwork Thu Sep 29 13:21:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Christian_K=C3=B6nig?= X-Patchwork-Id: 12994097 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id B1F76C433FE for ; Thu, 29 Sep 2022 13:23:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C25EE10EA66; Thu, 29 Sep 2022 13:23:27 +0000 (UTC) Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7886310E61A for ; Thu, 29 Sep 2022 13:21:48 +0000 (UTC) Received: by mail-ed1-x52f.google.com with SMTP id x92so1935170ede.9 for ; Thu, 29 Sep 2022 06:21:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=5h1tswu/X88tJaPbT1f7Ia/Vt5VzuYCNSkGec6syos4=; b=eh9HIdmLZ/76cPr7qevbMVj8a0/D83CcGUbk1doC29JHdbHrITE+bap/amVYo51fsQ ibvMuYcjYZTHDbvUyVgl5jl2Vsl17w/yz6bUi4DzAddVsAFkK32LRmqPakZGLY0++oO3 lWX9dNwUS2zApCnk0SI6QlgIJgfH91UlH0RFZxMjyeaaO3X5Oi5P+oEFZDwQPU/RZYh7 12uZdbWWQ58c8MzYkzYEd1Dm8hTb1G1kSQJT5yl6JC/bGDp6P1qLLpdMwod6FWScCb0P lNGuPGRxL0PihAfozdR5sQ1c4RMDRO2cIcScpxryB9tTGH2Y2ZrBcLK+NeesrPWgWK5K +GSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=5h1tswu/X88tJaPbT1f7Ia/Vt5VzuYCNSkGec6syos4=; b=eayFXxaq8J0PVrXCXcF28UbLZoq7yEwwOyWt2gBCrgptsYPzjQoc1k2WQ3HREEHL+u zxazI5cLQqx1AmD3vNdoLu5wvqfvSVfNU+/FsqZcgsG8DOPfK1fCkf6+fXDxsCnHWNGI 2cQ1hEK7qYjNDVcl76bK9X5aXokAkOqUUv+qq5k4nad2CVXq0uN+J/Zp1DKMUU/aDjiF JFskzOTOPnp3E1u5SG4tx0khulXO5rQEMAIC6CsDX8r+TfHHVB8FhMxRLk8FOZ0uM2of y4Ynh0/gXVd1Z6jqTUE9DFeDdw2gaaGBkJYIImEHLLcbbdWrwLRZS0EjF2oqqc9iixUO LoIg== X-Gm-Message-State: ACrzQf1F03QCtbw+QEYY/j4jerNDhp1GRHPP3fvdezDpEVo+S3JIgzRG lKlXNjbVZW8N5mzYxdgnNtW9Zv8L0VM= X-Google-Smtp-Source: AMsMyM4mp/5CAp+rJKoJPL2TH0QanvCaGG8+FzuzYrORKHT3TBdk62ecP5Fl5M5s8TwxCnnTomkt8A== X-Received: by 2002:a05:6402:3547:b0:451:3be6:d55b with SMTP id f7-20020a056402354700b004513be6d55bmr3341199edd.57.1664457706746; Thu, 29 Sep 2022 06:21:46 -0700 (PDT) Received: from able.fritz.box (p4fc20ebf.dip0.t-ipconnect.de. [79.194.14.191]) by smtp.gmail.com with ESMTPSA id gx6-20020a1709068a4600b007836d075152sm3983807ejc.187.2022.09.29.06.21.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Sep 2022 06:21:46 -0700 (PDT) From: " =?utf-8?q?Christian_K=C3=B6nig?= " X-Google-Original-From: =?utf-8?q?Christian_K=C3=B6nig?= To: dri-devel@lists.freedesktop.org Subject: [PATCH 09/13] drm/amdgpu: use scheduler depenencies for UVD msgs Date: Thu, 29 Sep 2022 15:21:32 +0200 Message-Id: <20220929132136.1715-9-christian.koenig@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220929132136.1715-1-christian.koenig@amd.com> References: <20220929132136.1715-1-christian.koenig@amd.com> MIME-Version: 1.0 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: , Cc: shansheng.wang@amd.com, =?utf-8?q?Christian_K=C3=B6nig?= , luben.tuikov@amd.com, WenChieh.Chien@amd.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Instead of putting that into the job sync object. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c index 8baddf79635b..e00bb654e24b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c @@ -1177,9 +1177,9 @@ static int amdgpu_uvd_send_msg(struct amdgpu_ring *ring, struct amdgpu_bo *bo, if (r) goto err_free; } else { - r = amdgpu_sync_resv(adev, &job->sync, bo->tbo.base.resv, - AMDGPU_SYNC_ALWAYS, - AMDGPU_FENCE_OWNER_UNDEFINED); + r = drm_sched_job_add_resv_dependencies(&job->base, + bo->tbo.base.resv, + DMA_RESV_USAGE_KERNEL); if (r) goto err_free;