From patchwork Tue Aug 27 09:58:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 11116543 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 57644112C for ; Tue, 27 Aug 2019 09:58:31 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3EFB5217F5 for ; Tue, 27 Aug 2019 09:58:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3EFB5217F5 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8C3568966B; Tue, 27 Aug 2019 09:58:30 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by gabe.freedesktop.org (Postfix) with ESMTPS id DEE5989664 for ; Tue, 27 Aug 2019 09:58:28 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id p74so2390809wme.4 for ; Tue, 27 Aug 2019 02:58:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KtIIzwTDR1B8HezjMZLd0UUrjubJe6Pa7zbd04NstpY=; b=QINBKJtNEdlFj5+DSVGCWIzcwrGVFI+qsBBFtI4n7SeE/Z9KHwXqHKNdXciik9O5iT E9mA6UY88nKzSvUWnELnzKH+DjIOYBH7I1TLpit7cNYZMSO+3K1ft4y4lo/ozvuLdKk5 fytTANVhYyyrTTSfdgLIx5H+thS/ZtDOOphdh6ygu60pSWf41Ahp7oNchBaTt1dY7vCn ac8eYJnE+dtPFhYHA7zQIFAOPITn1M1/qUucRbwdyg+yPeghPvLS/YBLbmOViKm2OySw 1tee3GgY7yU7dwdi2Jpv0iuaTGF6mEXzjgGwBSfKMbZEGiJz1VcH26NzoLG2aj9tQKtG 9YFA== X-Gm-Message-State: APjAAAXYIkwt4LqiShzoW7KokZ495xXgPtF7qasnnATrB/Qyw0QALmM5 ZHnJy7HFnGWgnGg4y8o7BRPx4hxHEmYl9g== X-Google-Smtp-Source: APXvYqxtnYf1tAwNYwh4f/eAjThvqPmtKVp37xwzQWjJOeB8wQJpDTM2QVLcJ49DhGpTADsj+rGFpA== X-Received: by 2002:a1c:4383:: with SMTP id q125mr9198967wma.16.1566899907058; Tue, 27 Aug 2019 02:58:27 -0700 (PDT) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id m6sm10862084wrq.95.2019.08.27.02.58.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Aug 2019 02:58:26 -0700 (PDT) From: Neil Armstrong To: dri-devel@lists.freedesktop.org Subject: [PATCH 0/2] drm/meson: add resume/suspend hooks Date: Tue, 27 Aug 2019 11:58:23 +0200 Message-Id: <20190827095825.21015-1-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KtIIzwTDR1B8HezjMZLd0UUrjubJe6Pa7zbd04NstpY=; b=zAQ2uvSvJSVmWXzSLfN3dfzl/n5RCwFZYCTgk+n/eg1RDaVnKT69s8WDBwU+9jvvNr Zcosf/Sm886GfP1In/JAYTq0mTJA5pJq8/H6r8T0TGhOtRm6eaXGSobKTpUikVR6xOzo wecGUL4VzblD5iC96+CMpyhOrd2mh3EkQoIpR1P8ZD45ncg76XgjkinMPqym/E6+JmkR bqvvNZ/jlk/eMuacEWTOZuUW4ko4sTaXRtCyv82qgtMfVKWNz5FSYSgsaHlg1H01d2wo tUN476WU+HcumjeDsmXOuCodvBUolzMK1RnBxrYs3EyEVAp8H9nndkFhicDEZ9WYRtLC 0nxg== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: khilman@baylibre.com, Neil Armstrong , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This serie adds the resume/suspend hooks in the Amlogic Meson VPU main driver and the DW-HDMI Glue driver to correctly save state and disable HW before suspend, and succesfully re-init the HW to recover functionnal display after resume. This serie has been tested on Amlogic G12A based SEI510 board, using the newly accepted VRTC driver and the rtcwake utility. Neil Armstrong (2): drm/meson: dw_hdmi: add resume/suspend hooks drm/meson: add resume/suspend hooks drivers/gpu/drm/meson/meson_drv.c | 32 ++++++++ drivers/gpu/drm/meson/meson_dw_hdmi.c | 110 ++++++++++++++++++-------- 2 files changed, 108 insertions(+), 34 deletions(-) Acked-by: Daniel Vetter Tested-by: Kevin Hilman