Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp487687imm; Mon, 1 Oct 2018 13:15:58 -0700 (PDT) X-Google-Smtp-Source: ACcGV61SlCv/0Q+VkdCdXDXYaqYS4jpga+kLZ08W7jjMQW6FX2EyEnQBmXilpIzaWjJDF3DiHxUM X-Received: by 2002:a62:1f9d:: with SMTP id l29-v6mr12779605pfj.121.1538424958737; Mon, 01 Oct 2018 13:15:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538424958; cv=none; d=google.com; s=arc-20160816; b=Akme8oQ36PrYeMGPH2rfAc1Qyu1THd86VOh1HQTFoT9ZtMYu9HfruYdnCOmlINo/ml 4qg3p6kMhsJolvtTvvAlGNuHIcBDcpV7LxBW2+Kzu351J8PH9cjYwei0dthJ2q93PHTW jNwEzpQ+uB/8iV4b/lu72A5S0lPIbJvj5UEQpqky47BzD0B5Qs865Gjtm/xuc2wJB+Bn HrbEB7DBSCBEc5ppC7tSXKFdeLrqgAxDIgBBfwZtT0n2t/rthZCLj35GIFzaZNirVLBm kwEWQ1+kZAk4Q+bYcdilvVGrQoGgFj1yMVEz8fyNvhkbPOOtVr7NazNzpQZu5LIJ2S/Z /+ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=7U9eDoBe/VI8seVqccayQju44ffoyBPXhZTfbsnUaCU=; b=hpv3Q+QAbQHdk9XgBw2EUwhAmw44bEMhkyl4J99NKSL4Zn6JBfl3K4qzaEjDwNijAg E+DqZHWrJF+3quqTvCf0zuSlBDoMXjI1pAQvi5MLrx8TjaI3HTCAA/EJDuvbBqY/tZSx aY9vZ9qddQEpWOh4iMp07KRgLjv4pdcCHOc9lfpYwbPd6SxpnD0zXftzgPZFr6DBujw3 wyTmARxbsjgAymtoUG+NBtkhz5PyLA8JZx2tERlSXt38rsGIdMQDUvx1jCx6ppqedZP2 PSieHLvYh6HwiC/gCcXS+yVxFjf8lk87fv8ocb0PWiaVmcHHGtrbo2cUTyDopvhRmTBk W7rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pheBw9VH; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a123-v6si12674928pgc.49.2018.10.01.13.15.44; Mon, 01 Oct 2018 13:15:58 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pheBw9VH; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726612AbeJBCxm (ORCPT + 99 others); Mon, 1 Oct 2018 22:53:42 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:36691 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725994AbeJBCxm (ORCPT ); Mon, 1 Oct 2018 22:53:42 -0400 Received: by mail-ed1-f67.google.com with SMTP id f4-v6so59308edq.3 for ; Mon, 01 Oct 2018 13:14:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7U9eDoBe/VI8seVqccayQju44ffoyBPXhZTfbsnUaCU=; b=pheBw9VHT87xxgAF45/klsR3jiIzRnNt/8FlRzAxCq+JssvIV3ShFDpZZYpfkcsqBZ cbfKpXj8YLbA1JG3MLDLYC82kQ58M2bKemj7HH6Qb0Nja4iDofC0n/RlLtQkaOvH/Yrv Soxi0RqCTXZAwfx+z5uEgJhyePssMuMuiIgpDbnRjW7N41Mx+9rAoFOhO2cdSbtGMR+k vryDogpana4UZsQomBjYsg2BpeGNWCnQVXl9BqMie9gPSLMTNdt37cwhRWiEtZn90lQW rPNe+tvv32PcBR4mFqk9gKaiysWL+T+5cez3vTt/EzeC5BOu32PxY6J6F0mQ5BKPy+RP 9gOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7U9eDoBe/VI8seVqccayQju44ffoyBPXhZTfbsnUaCU=; b=O1GEWNVBxJQN45lpu3+843BD7u6aIeVxTkxLGvpqXqFfr4vbFVlfJigmDbgAoeodYq 6OkaNjKQ397AbsdihDty5V7egBPrWiFgsSiNDROiTv0oTvPB9JJeYb15Db+a1kbIlKWR B+Fwg9Vi+q71dDwjMdwHi7Ei+VaETkwNspjc0bTwg+TQLTTy39SJXiX9mWIjBDIC+spm s5M69c2r9Q9zNnnqNbARt32h/q+uBN8jbCzd1jLSR1roOu31cXqaTEOqueDc2ZkaCILL MhaJ6tMQZ3rjAX1IZW5AYVLpVxzDVHG0x6W0VJF10HrH+ipj6Y9eyKSQaQjZ061PkzFp VXjA== X-Gm-Message-State: ABuFfogKmXBPH0RohekoYzY4hn5dpuBpRutBNYBDCmY3NXd8Li9TVOvL qjfZiEy3APakGABl/IIcDIcobJyVz4BuDZi4xu0= X-Received: by 2002:a17:906:2412:: with SMTP id z18-v6mr4045254eja.164.1538424850923; Mon, 01 Oct 2018 13:14:10 -0700 (PDT) MIME-Version: 1.0 References: <20180904202747.14968-1-peter@lekensteyn.nl> In-Reply-To: <20180904202747.14968-1-peter@lekensteyn.nl> From: Fubo Chen Date: Mon, 1 Oct 2018 13:13:59 -0700 Message-ID: Subject: Re: [PATCH] qxl: fix null-pointer crash during suspend To: peter@lekensteyn.nl Cc: airlied@redhat.com, kraxel@redhat.com, alan.christopher.jenkins@gmail.com, virtualization@lists.linux-foundation.org, dri-devel@lists.freedesktop.org, Linux Kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 4, 2018 at 2:10 PM Peter Wu wrote: > > "crtc->helper_private" is not initialized by the QXL driver and thus the > "crtc_funcs->disable" call would crash (resulting in suspend failure). > Fix this by converting the suspend/resume functions to use the > drm_mode_config_helper_* helpers. > > Tested system sleep with QEMU 3.0 using "echo mem > /sys/power/state". > During suspend the following message is visible from QEMU: > > spice/server/display-channel.c:2425:display_channel_validate_surface: canvas address is 0x7fd05da68308 for 0 (and is NULL) > spice/server/display-channel.c:2426:display_channel_validate_surface: failed on 0 > > This seems to be triggered by QXL_IO_NOTIFY_CMD after > QXL_IO_DESTROY_PRIMARY_ASYNC, but aside from the warning things still > seem to work (tested with both the GTK and -spice options). > > Signed-off-by: Peter Wu Is this a new issue or something that was introduced a long time ago? In the latter case, please consider adding a "Cc: " tag to this patch. Thanks, Fubo.