Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7151344ybi; Mon, 8 Jul 2019 15:40:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwM/LZ9eMiCkYT5Oz51u7lY6QoGvjyP2BpJz/6QHghq+AjyZsBSmnTYjkZDyDqUP6Sxh9mi X-Received: by 2002:a65:5183:: with SMTP id h3mr26374158pgq.250.1562625649786; Mon, 08 Jul 2019 15:40:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562625649; cv=none; d=google.com; s=arc-20160816; b=WsWfJ1gyAOwR6SuDmqCuOES+0lf2SnJjvZVY4v+8YPoMaXgjCP1RemnS/RT9TYlNck 8bFtObh65VrU2XV1hucsO1+WOlbVBMSFsQd+qP56l/L427Caqt7+3ZxSNI3/uA+YXykR ud+P4RuP8WavBHmM3clnU3gEcHOgXKjOPE0mzxBsnbXobcEIKaVXsiGqa4SbKrt9vz+v XpR/N2qOP25PNXv5lXMCrPNkLmlomLkoXfc/behGAHRJpqjmcYyodtudJln2TJkxZaog NrVsH8x1KYBC2XzCIQ7oGdQ2S5uZroaWNWA8yNzyGhMqoMKj2BI/ecd1Re4wARuG3sjX 7BBA== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mOHGF4g4K5HJrFbkoFzTK0YN0xFEIpXAX+YjKSDI+L0=; b=N2wcykZONSiq4mpiQ2xrRWYUXT1nJUcg+y/d9k7xy/qryVDAloB4+2bhYnYdejG/3T EIxpS9HrgxbOonoIT2AzIXa1b9stQwBQeOD19rPYwcKxwlS+8rvdZzcxtRY6lf0p9mVy D4c2lPcrjfo2h4s7ehcHXcoolHCrBqOuvESxIJX2ZxKHvRUvkTZPYZVmpqLVw/LlvhJ3 ZZGUa99vN24k5T055hzCdmijQnlbui4vcchU/5D9SBuk0TVzhAktttJZiclUVPD3ulMm wCjCii4fpMycjqTKeLDrFJMdte6+e5oI56DGW+HntC+oOwtZeRjbX1Jf7ZiDxBvxS4GC qoyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TN0TPdX3; 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 z17si10072029pgl.560.2019.07.08.15.40.33; Mon, 08 Jul 2019 15:40:49 -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=@kernel.org header.s=default header.b=TN0TPdX3; 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 S2390510AbfGHPeR (ORCPT + 99 others); Mon, 8 Jul 2019 11:34:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:36290 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390480AbfGHPeH (ORCPT ); Mon, 8 Jul 2019 11:34:07 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6F592204EC; Mon, 8 Jul 2019 15:34:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562600046; bh=aXj3z6IfKKrCdHytfIuFAzc+6Ul5/4UgWYTW5tMWF8k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TN0TPdX3j7TiAwwXypVnY2D7ZP5bcZ2cOzekpF1NC39AkfWa0bSzSO+uVzmQ4gmyG vg+435yiYh07WcxXfkKe3tC8W2LL0ZBW8KgNFt5FSc8UfpBT8/j7sUGzG9PsDzpqXx m7aEIBxkro7MWMrCcDv+sLhfV7X8B1nI/GEzyKOU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Max Filippov , Gerd Hoffmann , Cornelia Huck Subject: [PATCH 5.1 76/96] drm/virtio: move drm_connector_update_edid_property() call Date: Mon, 8 Jul 2019 17:13:48 +0200 Message-Id: <20190708150530.567539195@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190708150526.234572443@linuxfoundation.org> References: <20190708150526.234572443@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Gerd Hoffmann commit 41de4be6f6efa4132b29af51158cd672d93f2543 upstream. drm_connector_update_edid_property can sleep, we must not call it while holding a spinlock. Move the callsite. Fixes: b4b01b4995fb ("drm/virtio: add edid support") Reported-by: Max Filippov Signed-off-by: Gerd Hoffmann Tested-by: Max Filippov Tested-by: Cornelia Huck Acked-by: Cornelia Huck Link: http://patchwork.freedesktop.org/patch/msgid/20190405044602.2334-1-kraxel@redhat.com Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/virtio/virtgpu_vq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/virtio/virtgpu_vq.c +++ b/drivers/gpu/drm/virtio/virtgpu_vq.c @@ -620,11 +620,11 @@ static void virtio_gpu_cmd_get_edid_cb(s output = vgdev->outputs + scanout; new_edid = drm_do_get_edid(&output->conn, virtio_get_edid_block, resp); + drm_connector_update_edid_property(&output->conn, new_edid); spin_lock(&vgdev->display_info_lock); old_edid = output->edid; output->edid = new_edid; - drm_connector_update_edid_property(&output->conn, output->edid); spin_unlock(&vgdev->display_info_lock); kfree(old_edid);