From mboxrd@z Thu Jan 1 00:00:00 1970 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=-13.7 required=3.0 tests=BAYES_00, 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 D51D2C4361B for ; Thu, 10 Dec 2020 16:42:17 +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 811472388B for ; Thu, 10 Dec 2020 16:42:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 811472388B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B5F046EA93; Thu, 10 Dec 2020 16:42:16 +0000 (UTC) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id 162AF6EA93 for ; Thu, 10 Dec 2020 16:42:14 +0000 (UTC) IronPort-SDR: yppmOS2ftcw1vIizU1NWHLCU06sSAhoG9GtNjeFro9+lStYlLm/JuIWTw6zLWlZQYLTcb8zzT7 Pw5fFL6ClbYw== X-IronPort-AV: E=McAfee;i="6000,8403,9830"; a="259002590" X-IronPort-AV: E=Sophos;i="5.78,408,1599548400"; d="scan'208";a="259002590" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Dec 2020 08:42:14 -0800 IronPort-SDR: jgD5XgGVnbPPcmuRX4je2a28pu1ztzTCU8XkfRtkCgW0EdubWPgQ6f67FeJYavuvn4LgUKnwR5 bEnT9m/giP0A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,408,1599548400"; d="scan'208";a="484543081" Received: from gaia.fi.intel.com ([10.237.72.192]) by orsmga004.jf.intel.com with ESMTP; 10 Dec 2020 08:42:13 -0800 Received: by gaia.fi.intel.com (Postfix, from userid 1000) id E7C0D5C201A; Thu, 10 Dec 2020 18:39:56 +0200 (EET) From: Mika Kuoppala To: Chris Wilson , intel-gfx@lists.freedesktop.org In-Reply-To: <20201210080240.24529-1-chris@chris-wilson.co.uk> References: <20201210080240.24529-1-chris@chris-wilson.co.uk> Date: Thu, 10 Dec 2020 18:39:56 +0200 Message-ID: <87im99lin7.fsf@gaia.fi.intel.com> MIME-Version: 1.0 Subject: Re: [Intel-gfx] [PATCH 01/21] drm/i915/gt: Mark legacy ring context as lost X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Chris Wilson Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Chris Wilson writes: > When we reset the legacy ring context, due to potential corruption over > suspend/resume, remove the valid bit so that we avoid loading garbage. > > Signed-off-by: Chris Wilson Reviewed-by: Mika Kuoppala > --- > drivers/gpu/drm/i915/gt/intel_ring_submission.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/i915/gt/intel_ring_submission.c b/drivers/gpu/drm/i915/gt/intel_ring_submission.c > index a41b43f445b8..1959e3e5b8e9 100644 > --- a/drivers/gpu/drm/i915/gt/intel_ring_submission.c > +++ b/drivers/gpu/drm/i915/gt/intel_ring_submission.c > @@ -602,6 +602,7 @@ static int ring_context_pin(struct intel_context *ce, void *unused) > static void ring_context_reset(struct intel_context *ce) > { > intel_ring_reset(ce->ring, ce->ring->emit); > + __clear_bit(CONTEXT_VALID_BIT, &ce->flags); > } > > static const struct intel_context_ops ring_context_ops = { > -- > 2.20.1 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/intel-gfx _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx