Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp525648imu; Thu, 20 Dec 2018 00:37:21 -0800 (PST) X-Google-Smtp-Source: AFSGD/W/TG4ayAnTlUieignoYmDzf9W+HzGaa9FF6rlWU9FFj5AxjTdSmjej9wHf5xxxdEF7zTjp X-Received: by 2002:a63:5f50:: with SMTP id t77mr22339631pgb.76.1545295041881; Thu, 20 Dec 2018 00:37:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545295041; cv=none; d=google.com; s=arc-20160816; b=UXYjQZ8yjrNBjGkYC8RPaJ+eInt2+rRVRv4OVZzp9pptVzW0cwy5SPYkI+Yq99lmKE 5YCUYDh6ame5ho+/1/CZKSouauF14/mRXF93DpbO29AVksB0YSvvhp7BTcuJW8D/jZkb DVLqmavuNT+4fq5VkVzVIzYMvv6bwgaq7RIwk2wTFeFhezOSD0V57AftlafLH3Ui/h7Z Mt/PXPziKulVo8ohXMjdjQJxycz8DyD/0D6ms3xYgJojzMv7lpw8cdhonKrkyIVuughq cvl40wTJxpYNXSaJGJWzJovL+DdmylLth3x0CgA9OscJBSTmq/v9WVD+7VIujtMIh8oQ aLmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:message-id:in-reply-to :references:to:user-agent:from:content-transfer-encoding :mime-version; bh=NQlwVgEZvycdbc88qA0NHFS4dxZbHQPLiEEow6AgGn4=; b=fMnJwYli04ueLcgFBYd/P0R8Qw7dr5Q9ZkEcxsJ5zSi6/7yn4yB4fNtVnMvvs5tpo8 GE1B5EwvXxcNMHf1IDPcFgMozx5BC26X+bLmH2fjCQIozG7SMU2Dz8HccANgvo9biFKU diqc43epl1XLayRcr45ou+svhPgDZ4vN3S6q3tyXGOfjhMt/kZ4HKTINlQxa61RSSgRN XcWVxc0m4626DviZVEOP7N2G7Wpt159szMwxAzZWdDr1u4jwsX+QxFfZl9stEIO1Lk4o uO1vuSCP1gx8DdF2LP5v9OwnkNjjdH6nXywzpnEiTPfzHfYp52fGfOs2wE5H9HZBjbAk r8mg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o8si17300845plk.28.2018.12.20.00.37.06; Thu, 20 Dec 2018 00:37:21 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725787AbeLTIgR convert rfc822-to-8bit (ORCPT + 99 others); Thu, 20 Dec 2018 03:36:17 -0500 Received: from mail.fireflyinternet.com ([109.228.58.192]:60055 "EHLO fireflyinternet.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725300AbeLTIgR (ORCPT ); Thu, 20 Dec 2018 03:36:17 -0500 X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Received: from localhost (unverified [78.156.65.138]) by fireflyinternet.com (Firefly Internet (M1)) with ESMTP (TLS) id 14981347-1500050 for multiple; Thu, 20 Dec 2018 08:36:01 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT From: Chris Wilson User-Agent: alot/0.6 To: airlied@linux.ie, alek.du@intel.com, bin.yang@intel.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, jani.nikula@linux.intel.com, jani.saarinen@intel.com, joonas.lahtinen@linux.intel.com, linux-kernel@vger.kernel.org, rodrigo.vivi@intel.com References: <20181220080135.9059-1-bin.yang@intel.com> In-Reply-To: <20181220080135.9059-1-bin.yang@intel.com> Message-ID: <154529495460.10782.18092727751160821897@skylake-alporthouse-com> Subject: Re: [PATCH] drm/i915: Fix i915_gem_wait_for_idle oops due to active_requests check Date: Thu, 20 Dec 2018 08:35:54 +0000 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Bin Yang (2018-12-20 08:01:35) > Normally, i915_request_alloc() and i915_request_add() will be called > in sequence with drm.struct_mutex locked. But in > intel_vgpu_create_workload(), it will pre-allocate the request and > call i915_request_add() in the workload thread for performance > optimization. The above issue will be triggered. That's your bug. It's not normally, it's a strict requirement that the struct_mutex (request generation mutex) be held over the course of generating the request. -Chris