Message ID | 20230622101412.78426-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 k13csp4975070vqr; Thu, 22 Jun 2023 03:58:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4f7bJijLSjBuHd1gG6HWVhp0FieTsQOYaz9YFkBtH/QJqYhseiQNZp9s05VlJUHSsBaqcd X-Received: by 2002:a05:6359:67a1:b0:12f:22c8:59d7 with SMTP id sq33-20020a05635967a100b0012f22c859d7mr9342335rwb.6.1687431483818; Thu, 22 Jun 2023 03:58:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687431483; cv=none; d=google.com; s=arc-20160816; b=MUvgLHA/j/sCM+BSNl+GQW+xEIODq43D1/crQoGTU65pAq1ATL1ssEZKA0fAVx0Ew+ GsvlPomJHhAVhHL3QSEs6/6savTArgG/dNNfBRZTOoBBXzIbkBEmIJwLgNzh5SfckTvX DfHFokl+EII05+r3zuORC5ym+5SDpDEjS7Y5W9CdZzM2LfgRSxbUr20s/BPMpNpT8O30 16QrmCOgg7IQ9sjWDUi7LJSClXClnAdoU5eGXv+wBy8nFyJcVSX9JyOuPHujGaQSANmw gF0TtCInX9UFHYc7SrQuKVN1xfZl4L+ek53SBLtKF/i/CGyeAhfQyoX6CQP4GMCdXNni 1IMQ== 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=gFNtW0JtbI16tPFDX4IdE8TyR5/FQkJKul2TIhy9PHk=; b=SeFFEPK9rgV3UFHZTesXw/N3aZRW3Y6w56AKb0laBvtAih/LZbmTbZC4uFO6o3ohOZ BvXK6dr1HcTDnTgJL8pPLbQ3rxIREszSJkSOeWdnn4NVSUwf9hqmRZfQX+5DvqHqMaC6 cDpF+ndtgIk34GgahNPvGaMR3OEgABJ2/7kV4hndECiLLWVSmxeHXrnv4w0mGushEQeM 3X8I2N7KRpQmTfZT0L4NL5buM/V7k5ckgkrMWkdq6hogsgEPMOCN8WmoOFGNwD7/21YD OB7CbBLknH0CIgP6Lx1UsUdOA5yNuY0GCNIBWOq1NSOKdhJH2DvWxSbyCI9rCSv9LZSF bqgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lxHkArxd; 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 186-20020a6300c3000000b005538a3e801esi5983261pga.535.2023.06.22.03.57.50; Thu, 22 Jun 2023 03:58:03 -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=lxHkArxd; 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 S231253AbjFVKUF (ORCPT <rfc822;maxin.john@gmail.com> + 99 others); Thu, 22 Jun 2023 06:20:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231400AbjFVKTx (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 22 Jun 2023 06:19:53 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A787107 for <linux-kernel@vger.kernel.org>; Thu, 22 Jun 2023 03:19:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687429192; x=1718965192; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=9jam3CMoVZ6A/N5nfAjGK/fytBzu9GaWl/y16AysgMI=; b=lxHkArxdyc21ZZ9jDAQWNMIBctSBlGPDYa1WiqLWmR9E4Oxlju36Fqqm +eZMRfpSdlkKWjurImF3NDEfboMNhyOIBIiHT/qrtxXcmZugxpIbgp+S3 C0Bocdx8QiPG01oyagly5SWzsQzR/CY7Zrxn3I378Q6nUDeWW+A+y0DX0 uvWhRttYxQTw2akSa+Y5sAn7/zcCUwtUMoHDPlDT17XuxSOdmp4ALqNUt /6sITLAMfYVJDMtN9Y/gKgEBxWg/RerETCXsHGQzYpvCXYNhPeW3n1Xu4 FN0JAyDYiWnXMFhNYCBhdDgiMT8uVsgd1HKVfTrm2B5dbWedIlwG2wPoT A==; X-IronPort-AV: E=McAfee;i="6600,9927,10748"; a="345181950" X-IronPort-AV: E=Sophos;i="6.00,263,1681196400"; d="scan'208";a="345181950" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2023 03:14:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10748"; a="692193726" X-IronPort-AV: E=Sophos;i="6.00,263,1681196400"; d="scan'208";a="692193726" Received: from shari19x-mobl1.gar.corp.intel.com (HELO thellstr-mobl1.intel.com) ([10.249.254.173]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2023 03:14:29 -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> Subject: [PATCH 0/4] drm/ttm: Fixes around resources and bulk moves Date: Thu, 22 Jun 2023 12:14:08 +0200 Message-Id: <20230622101412.78426-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?1769400155401393477?= X-GMAIL-MSGID: =?utf-8?q?1769400155401393477?= |
Series |
drm/ttm: Fixes around resources and bulk moves
|
|
Message
Thomas Hellström
June 22, 2023, 10: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. 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 | 20 ++++++++++---------- drivers/gpu/drm/ttm/ttm_resource.c | 2 ++ 2 files changed, 12 insertions(+), 10 deletions(-)