Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp733588imm; Thu, 13 Sep 2018 07:00:50 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZGw+TGmwcsDdNqzY/v8oiUC7hddTyLskgfHrFvrXigDhixXKPnNQQkic/TOdaameDfu09E X-Received: by 2002:a17:902:4201:: with SMTP id g1-v6mr7525790pld.203.1536847250622; Thu, 13 Sep 2018 07:00:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536847250; cv=none; d=google.com; s=arc-20160816; b=ARWIEkb2EqLSnTotCIlL4Bamt53fAW9Rx9yEU0e3AzDyVoDblIqNrYO/V2OLAhWtiv XB0HKR3JaEvnJ3Uid3fmdhNrdgiDBdEXr0hP8lldfLcrh9ZZ9ucvsZF1RB2Z2n7N8+Lp s/5skfIh2bfTkj2087Dy/tgo2X+jlg3tRc4AGD/TT4y69fTuW3EKXovptvzf9HGWrFbI fHbNqOuBNoAywSSMPYcyusSfxxXnaDud9Z6gEgSbBoEmnTOxtonRrEA4FO8osCz3tUzz ZYYeAlK3/M0m0nxnMexwbiphDUgt9piBxR3ISohyBYWdWncpy9riJN6wJKI+UNc5ieQy 16ZA== 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; bh=hcxHZtaBwpmpsyoNFMlaIPM8nQ8YFaXct3w4xsTmEvY=; b=yQU2GVgUqdhjMq5ZAH8ifl2VxfcAIDmjubhauGq2hMIv8EA9QKubXc/BxWMUwWJ43S bPDwxyabw/0dWYhQtF3uTkvvMcE8tHnF4acpP/d4wkBWXFw6eUO4FSjZXkfAYWs5KFL0 g7b5vO4OVxSIo4iK2MR80GsRDBz3rle1MOcb2dSy1h6bOka8g490xVoATDIxOX1eG1G4 QJXD9sB8z0rMnB5iHy+JYfYLYvBBgRJ29Ol45Ipjn0ZsLFL0FolXyQr1jvLfXk4cN7lY RvcS1YP0fh+jcYbzEno2YUrN9bWffjdfzEi5ZlNPP1qz+WcmdyFsP7rJIxTEKf71/4vb PFrQ== 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 p61-v6si4150397plb.55.2018.09.13.07.00.35; Thu, 13 Sep 2018 07:00:50 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731800AbeIMTKE (ORCPT + 99 others); Thu, 13 Sep 2018 15:10:04 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34934 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729047AbeIMTKE (ORCPT ); Thu, 13 Sep 2018 15:10:04 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 186DCD15; Thu, 13 Sep 2018 14:00:25 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lucas Stach , Sasha Levin Subject: [PATCH 4.18 132/197] drm/etnaviv: fix crash in GPU suspend when init failed due to buffer placement Date: Thu, 13 Sep 2018 15:31:21 +0200 Message-Id: <20180913131846.844410647@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180913131841.568116777@linuxfoundation.org> References: <20180913131841.568116777@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Lucas Stach [ Upstream commit 5b147465532365dc4e2fee8499d6ca1f52dd0d16 ] When the suballocator was unable to provide a suitable buffer for the MMUv1 linear window, we roll back the GPU initialization. As the GPU is runtime resumed at that point we need to clear the kernel cmdbuf suballoc entry to properly skip any attempt to manipulate the cmdbuf when the GPU gets shut down in the runtime suspend later on. Signed-off-by: Lucas Stach Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c @@ -799,6 +799,7 @@ int etnaviv_gpu_init(struct etnaviv_gpu free_buffer: etnaviv_cmdbuf_free(&gpu->buffer); + gpu->buffer.suballoc = NULL; destroy_iommu: etnaviv_iommu_destroy(gpu->mmu); gpu->mmu = NULL;