Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp231795yba; Fri, 5 Apr 2019 05:43:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsuTauwinwzBJdYhgdQL8OK+vqGLse4/GHuTNjthZ451vRpYfNwyQb68drmnoNWzCxzgAF X-Received: by 2002:a62:4852:: with SMTP id v79mr12242579pfa.72.1554468211492; Fri, 05 Apr 2019 05:43:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554468211; cv=none; d=google.com; s=arc-20160816; b=H+zQIIjX6TnfScrFlNQfW73i2+FIEfr7rXKfHvl+azTWm2oYqg01nGLajTaOgwJdAT 2WRNZc3vX+deXolzdK6Mkcr4zxhSJb+mXHxrsnJMKk2RDCAYQYtODlaHOWefDIfOBS6l HuZimIqM6aKCuG0AdjxEDqhocuPgZ7NXMZMQXCfVHRuJHUSC+Z7ZoUbAtszxBmhjc+9N v3PtTDoXM53orph+SG+xrubMIU6ijlN5EEcH4uFy+6TSefqYJsnZA2pBcOGO2lzT16bA Zy7VsqcV1f2ZKrln2BM5IrbUV8uaHsLgkARhuLqjdqBw/dsMVf4cpq1CvS9+ribKCuH4 XA6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=aQHc7CN5RJL5IF+tIgEtPQ6I3oT1hnKJTao1hAP5ESQ=; b=s4tDJZHnt5lWiEW87jTjF1Vtdc6gxXQ7jMcXvPuTzuEezQG+l2tM9L24VhEjRf9cSO mN9fKoKfGIVdmZaHeV4/8GFMobqquGj5D2dwCpCPGsZxFQm2ajPe+BwI3kIkCAE5PYRn lURLLZas8RbwuE1LVZRJCkrVL1xykvNks03Okp7j61ELHRRrx0YzLkftQY5ifO1QjSns JUrF+7/oFOoe0X5CxvIT09krvqqYvXsAyIdHb69rbH4q4DpNxZxvZQpuEMOqUeXGxzEy xVcKsvbx1Lk4ddfsAloc8S901AesMWBVSOSwpZe3NVdNrXNhfc+UY8NqaEE4kOMVV9a3 rQZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n12si18964524pgm.191.2019.04.05.05.43.16; Fri, 05 Apr 2019 05:43:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730743AbfDEMmW (ORCPT + 99 others); Fri, 5 Apr 2019 08:42:22 -0400 Received: from mga09.intel.com ([134.134.136.24]:11901 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726626AbfDEMmW (ORCPT ); Fri, 5 Apr 2019 08:42:22 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Apr 2019 05:42:21 -0700 X-IronPort-AV: E=Sophos;i="5.60,312,1549958400"; d="scan'208";a="289025662" Received: from jkrzyszt-desk.igk.intel.com ([172.22.244.18]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 05 Apr 2019 05:42:19 -0700 Message-ID: <2790d298adb0d57a67a0a3c9bc9aa8c7c08f0a0d.camel@linux.intel.com> Subject: Re: [RFC PATCH] drm/i915: Don't panic on non-empty list of free cachelines From: Janusz Krzysztofik To: Chris Wilson , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi Cc: David Airlie , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, michal.wajdeczko@intel.com Date: Fri, 05 Apr 2019 14:42:16 +0200 In-Reply-To: <155446684177.8259.3979238916498240519@skylake-alporthouse-com> References: <20190405121331.6524-1-janusz.krzysztofik@linux.intel.com> <155446684177.8259.3979238916498240519@skylake-alporthouse-com> Organization: Intel Technology Poland sp. z o.o. - ul. Slowackiego 173, 80-298 Gdansk - KRS 101882 - NIP 957-07-52-316 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2019-04-05 at 13:20 +0100, Chris Wilson wrote: > Quoting Janusz Krzysztofik (2019-04-05 13:13:31) > > From: Janusz Krzysztofik > > > > If there are active users of a device during driver unbind, the > > driver > > now panics on non-empty list of free cachelines. > > This panic is there to say that fini is being called with active > contexts, that it is being called too early. Those requests should be > cleaned up first, unpinning the contexts and resources, and so > letting > the timeline be freed. OK, I see. But why panic? Maybe a WARN() would be enough. Thanks, Janusz > -Chris > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel