Message ID | 20230626091450.14757-1-thomas.hellstrom@linux.intel.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp7359781vqr; Mon, 26 Jun 2023 02:48:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5/o6U5jiBxCPbqkE/Ipb37k6XiSqlqxmcM26QNtqvF70yW1BWET296yvqIPmSckJ9Ov77l X-Received: by 2002:a17:90a:c7c4:b0:25e:fdaa:59b8 with SMTP id gf4-20020a17090ac7c400b0025efdaa59b8mr14215641pjb.7.1687772888036; Mon, 26 Jun 2023 02:48:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687772888; cv=none; d=google.com; s=arc-20160816; b=yner1l/IELd6+dbiC29LA6AtLiWG/QNFmYm+9ihWJLWbJueCzERZy8omlXOV/TT6Kc smCDhortDVrgOz45toXO0z7X56+DEPcEMdsfCWl+y2wTzmn+B3O2r+MktLbh3lYbrtaH 81bEupDd1+TP/YVshqSiL9Bh7KrCXrThszBkE+Z+C+HUbKvHBGFuTho1VNy/c67TDOOS B4eOGRlF0UI849h9MP0NoHASoRZXOSayekI2ljjbVSK3MQk7XOYa1oPyL/7v/otltdpX K72x72KQt+xap+OM/NcyEiJOGKquNl7ENvnDyS+8Y8AFUJ0vhJBWWfk37d0I/w8l2m1X A3QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=9PV6S/fdBQzhFuMNl5GxNWsjixWsjohQqHh5KLeEK+g=; fh=Bdt4lN1BFZ5fQvFuSk+rooeFd2ey2QJjr14L7phlhRE=; b=MP9AlQACfKsRhaQB7944Kmmq52qzdqCFwV55btgeroFnf8DtP4NeBG86s73+yiwHdp T/y3XYX9ZAHqkhs+sok9/Q7WQ5b9ngy5GlMpd9S1SA3ftSEfaYrSESlE/y9cncM0aOrp n15nNUYvSAM5Py9wsO9bf38RCcHpj/dtTQVDwqT0Yudk326NuRbmuKlyBz8RwZiXMR+O VpfYyaFv7sxnqhnuEBSBppLVW20nDTzIDP1YZX07K8E5rSxNs7AYWXavzcWw460uYBJg /tJwSoH+GnHKDa4qhpEKrMkIggWhJI4/SBcG7n46hPQwavW27lG6+V17VnrptZKtzERC OHYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dUO274w+; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z15-20020a17090acb0f00b0025327b5caefsi4908362pjt.165.2023.06.26.02.47.55; Mon, 26 Jun 2023 02:48:08 -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=@intel.com header.s=Intel header.b=dUO274w+; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229516AbjFZJT3 (ORCPT <rfc822;filip.gregor98@gmail.com> + 99 others); Mon, 26 Jun 2023 05:19:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbjFZJTC (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 26 Jun 2023 05:19:02 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE5E5297A for <linux-kernel@vger.kernel.org>; Mon, 26 Jun 2023 02:16:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687770987; x=1719306987; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=oI+iy54Hh6AlX2ttyHvrxT6tZDNwd+hp/2whYhQ4P/w=; b=dUO274w+RHVHbSrvBKpcP9NweEvKoiemESoOLY0czBa6rzeYumB4h9gR wQVb9VXZhA5vToYdyrkQ7/AtEj3xPUIuAkTrp8zqCt9zIkbZxepKapmH+ WzIV7bAkoMnVlZGcMC5eTpDSdC5h3wf4vuLTvThV3euXrO75ptu5HcW6C obugMU6RV7XwRT8l+o6WWsiO4qDfGeIsR3gTFP6p3ZMbZEU8B5QLrFyXK SiXbIVYYAz0/lD3JPrfopYnWEmwsx+Nm+EpAPuw+JMtOTk7tOtiCGr/Qh FaXPtXQO6za84aGygQmw20VePvV8+/j6IcELKEArJ/+NrRaaJlp4CjlIj g==; X-IronPort-AV: E=McAfee;i="6600,9927,10752"; a="345974058" X-IronPort-AV: E=Sophos;i="6.01,159,1684825200"; d="scan'208";a="345974058" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2023 02:15:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10752"; a="781357702" X-IronPort-AV: E=Sophos;i="6.01,159,1684825200"; d="scan'208";a="781357702" Received: from ettammin-mobl1.ger.corp.intel.com (HELO thellstr-mobl1.intel.com) ([10.249.254.105]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2023 02:15:00 -0700 From: =?utf-8?q?Thomas_Hellstr=C3=B6m?= <thomas.hellstrom@linux.intel.com> To: intel-xe@lists.freedesktop.org Cc: =?utf-8?q?Thomas_Hellstr=C3=B6m?= <thomas.hellstrom@linux.intel.com>, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, =?utf-8?q?Christian_K=C3=B6nig?= <christian.koenig@amd.com>, =?utf-8?q?Chri?= =?utf-8?q?stian_K=C3=B6nig?= <ckoenig.leichtzumerken@gmail.com>, "Andi Shyti" <andi.shyti@linux.intel.com> Subject: [PATCH v2 0/4] drm/ttm: Fixes around resources and bulk moves Date: Mon, 26 Jun 2023 11:14:46 +0200 Message-Id: <20230626091450.14757-1-thomas.hellstrom@linux.intel.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769758143429018275?= X-GMAIL-MSGID: =?utf-8?q?1769758143429018275?= |
Series |
drm/ttm: Fixes around resources and bulk moves
|
|
Message
Thomas Hellström
June 26, 2023, 9:14 a.m. UTC
MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A couple of ttm fixes for issues that either were hit while developing the xe driver or, for the resource leak patches, discovered during code inspection. v2: - Avoid a goto in patch 3 (Andi Shyti) - Add some RB's Thomas Hellström (4): drm/ttm: Fix ttm_lru_bulk_move_pos_tail() drm/ttm: Don't shadow the operation context drm/ttm: Don't leak a resource on eviction error drm/ttm: Don't leak a resource on swapout move error drivers/gpu/drm/ttm/ttm_bo.c | 26 +++++++++++++------------- drivers/gpu/drm/ttm/ttm_resource.c | 2 ++ 2 files changed, 15 insertions(+), 13 deletions(-)
Comments
On 6/26/23 11:14, Thomas Hellström wrote: > MIME-Version: 1.0 > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-Encoding: 8bit > > A couple of ttm fixes for issues that either were hit while developing the > xe driver or, for the resource leak patches, discovered during code > inspection. > > v2: > - Avoid a goto in patch 3 (Andi Shyti) > - Add some RB's > > Thomas Hellström (4): > drm/ttm: Fix ttm_lru_bulk_move_pos_tail() > drm/ttm: Don't shadow the operation context > drm/ttm: Don't leak a resource on eviction error > drm/ttm: Don't leak a resource on swapout move error > > drivers/gpu/drm/ttm/ttm_bo.c | 26 +++++++++++++------------- > drivers/gpu/drm/ttm/ttm_resource.c | 2 ++ > 2 files changed, 15 insertions(+), 13 deletions(-) > Pushed 2/4 to drm-misc-next, 3/4 & 4/4 to drm-misc-fixes. /Thomas