Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5327789ybl; Tue, 27 Aug 2019 02:59:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqxVVcEIPWmdMg5XdgSBNXQ+/wMXmpeJXLQb0hBarVhyDpwIwZ68j1U4tCwgCQkPhCs5GqPV X-Received: by 2002:a65:6859:: with SMTP id q25mr20096603pgt.181.1566899976287; Tue, 27 Aug 2019 02:59:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566899976; cv=none; d=google.com; s=arc-20160816; b=w8V0ZsQJtw6oKzRb4iBGagu+rdKaFG6D4Pe+YZIbZVguo7jE6OC5QTZVFq5BA6FIvN 8SBwxdg7BDF2Ey8ezuvzuUWk9rWSOj+Mx8KlFhhcbj8bz05tmUp0r7nNlWMj8+7opJPX cvWDVcd7L818sodgO3H/Bzd/Z0vjd4k04QqoKth6EuAgGneKY22fNTeDopvg3i1Yh6o4 UxqWkfmC3X7OlmLkzP/PCX3552xUSPY4x9Ysr99+Pc8dCfppidEFEldyysYhpNDT+BZ8 WrPRR/XhwO1Oj5r8FZSwF0DnlXTHFHAEn6YKYPVYBI4UGSjoApToaBVHnkVq8dSJzx2x 6Lng== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=KtIIzwTDR1B8HezjMZLd0UUrjubJe6Pa7zbd04NstpY=; b=ETdg46KSTKlpQiwl03CIv4cu4UXjbAmahOrtlX3h4hSgtE+Z3qxm92vBWSL2G8gnQx ziePCnbmUbU4gmzvAKjMrnYOPPcubrNO2xufuzsHzNPeKLwjHIFB6KBIZfkwVDQvtEQA m1vxfgCmLInWyDXXOp6f3WdaWrjVWme1Hq+To0ygCSrDPo/mW2uNC9pgurNM1BYFWjKf kt+LM3n1rJm0N7B1NO0++x0jBZEMHDGRqfVJwVhNFimk11M51wwhMFU/q3oGIjxwB4SR kIG3cr8GJSKFF5K7OVO7cVE2Y4qMnlpqAIDzbWygTOf194ysTVFLIUhAmC+94nTIMcAm UMoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=zAQ2uvSv; 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 y8si2094863pjp.22.2019.08.27.02.59.20; Tue, 27 Aug 2019 02:59:36 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=zAQ2uvSv; 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 S1728883AbfH0J63 (ORCPT + 99 others); Tue, 27 Aug 2019 05:58:29 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:52231 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726574AbfH0J63 (ORCPT ); Tue, 27 Aug 2019 05:58:29 -0400 Received: by mail-wm1-f68.google.com with SMTP id o4so2410941wmh.2 for ; Tue, 27 Aug 2019 02:58:27 -0700 (PDT) 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-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=tczN1j+fFT66czbMlU8X4uTQ8/IR//HNcBMRORZhrto6Zyh0aX75an7RJK+ZLDfLLV m06whQIfDSDZnQuP/ns2RnvkYwGtlRTlppHmOBrq0lhCHsoPTr45EFOVHOM2E/viiTR0 hV9u/y061Mk7K/P+H+EFcCx06oaq2lzUlgJMtblqoFqSrIEAHTtxE8aq66KP8fBjMFVh R65gBJXJy/67j5GUuu281AY0QpixefOPxK0jvwVb7CM7AI3sn8Egh4mdjscRSq7T0wA3 pgJgtT+e2sGW9c6MEOgg6pPZbor0LjRLXnG1L6M/YCG6KiN44yS1fGQO0lPjSyb3BhCq K8hQ== X-Gm-Message-State: APjAAAWDE2HRkKQ3tE8YxDYX/tK6W+FjEWfboLLWDRLhevG3fJAvkrAZ cFlIGigeBfqVVv+gDh2Km/ULaqCh/3QOsg== 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 Cc: khilman@baylibre.com, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Neil Armstrong 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.22.0