From patchwork Tue Jun 5 13:54:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 137743 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp990135lji; Tue, 5 Jun 2018 06:54:25 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI5CN6twXC1kXyvKVFhJTJDFez5ei5+8g5mwHikeV5J8fLVnXSaoY9f/e3FxFuXtsuLeyTN X-Received: by 2002:a17:902:781:: with SMTP id 1-v6mr26618797plj.150.1528206865847; Tue, 05 Jun 2018 06:54:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528206865; cv=none; d=google.com; s=arc-20160816; b=T9EEyiss5MBF2T1rSqImsfcfr3NV/JQstVghzRM0TyBUV8UpRbPu7X4nToJIUHmJEv v/4NBekZVmWtluowhfk+9io01fH2HPlw2rBwMoG3rDu+CZPuwh2u6MzxdznVDMu+7TSQ U/YD3C1H2LAg3pqM13gjlpzEUQa5gpZOf9RKtQr57SYOig6wEFEh73yxpdM6NOpBtOVI etdg6Z51u14fY9qoI9te1RA3EMxI/cFrmbBbpPsZvbB4PPLXJMTRbKxbOFDqOs6mMCGf DdObS9KD6kI4mO7SToIq+lb27qIbhwCZ7G1Uq5GRYjvcb4DCSgVP+A/WTZXkI8yr+OMJ 3igQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=FbGnCPCd4f0EEpKXYU3BzijCBHjlzxwT75Lptw4KDjs=; b=Rp6OElNAmWgYMce34s79qwLyP9E0KLkibVYRbGxr5kEbugfXhM9caGCnj+egXmY2Gp J3lE/7yl/ltTl/cET2aL5b69Bk1K9wWjjIWI4shGPMh721lFDrwZUE3dEMpgAlm0CS/a w6XhYqBigITtAZFO4HRdP9D9Qum1mZi8BIcJiHrQ0cBtLOH2Qv4OIZ7NI+OYAA2/aLM9 2RiM/uK9FNJhXnrGFvdxqHOMJ7DKx4klN+69SGE0dXyM2vrnpV+DD6HEnKPfHkGcu+7h qSBK99YhVQ4FLxwUgjVQ2iMeb1NSyQyVQD1yEU3VCpTm1x4woFA7zz7VKKPHICLNrtVB gb2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TYqEEIoG; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d11-v6si25790000pll.255.2018.06.05.06.54.25; Tue, 05 Jun 2018 06:54:25 -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=@linaro.org header.s=google header.b=TYqEEIoG; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752082AbeFENyX (ORCPT + 30 others); Tue, 5 Jun 2018 09:54:23 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:39460 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751870AbeFENyV (ORCPT ); Tue, 5 Jun 2018 09:54:21 -0400 Received: by mail-wr0-f194.google.com with SMTP id w7-v6so2537325wrn.6 for ; Tue, 05 Jun 2018 06:54:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=FbGnCPCd4f0EEpKXYU3BzijCBHjlzxwT75Lptw4KDjs=; b=TYqEEIoGC2dHZ0R/km+xo9vP75MsVo4RUNXNl2l+yAwh4qkpT13C+2q9kT/Ajtsz3U oq+LKyfwG0umACSmykNo2ajCAFz7hL8HHtcRamxL232bvaLvjNDPTAB+BGQLUnI2j5g2 sH7gzNPocK7tCIBKK1T8tJN2603/xOoH35iQk= 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; bh=FbGnCPCd4f0EEpKXYU3BzijCBHjlzxwT75Lptw4KDjs=; b=SXItK5bTQYzCTF88a0r3kjupDZ55tuEH2UCkTOcxEdMAbFn4bPMbl4OuJs26s/SqpE 9E9tyEuL2FxBto9OnSpTbdY5Ga/G5qOFYu/MSEf7V6I9gbXfpU2BhvdBOCyi177F409b gGS8RUbIPIc1cSEETkBn1APvDget+vX8yLi7yhL0Pq2i/LWblig3+6wa3k6e4qi01HsP m6duiuXWnGYv4e7++zgRrlnYfDQhv7u3WNMT8DmwT/P3Ij/Nssefvls6hIFqPlpauGyi nWaSNJEaIJ4Yy1CQWwp55OArkRLPDF0p1wp1yfhz/XGkkOqPMxJVx+NNt645wFLQwuyd NN1Q== X-Gm-Message-State: ALKqPwdwcy+4lgQtoNG/5jzUIzUo1yLsEkhXx6OyuhKFv2Q12OWA3KV5 3T9Gaq4thBSZWL51AE/z+uYNtg== X-Received: by 2002:adf:a6ca:: with SMTP id t68-v6mr15575094wrc.215.1528206860564; Tue, 05 Jun 2018 06:54:20 -0700 (PDT) Received: from lmecxl0911.lme.st.com (bol62-h02-176-179-166-238.dsl.sta.abo.bbox.fr. [176.179.166.238]) by smtp.gmail.com with ESMTPSA id o53-v6sm76797785wrc.96.2018.06.05.06.54.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 Jun 2018 06:54:19 -0700 (PDT) From: Benjamin Gaignard To: gustavo@padovan.org, maarten.lankhorst@linux.intel.com, seanpaul@chromium.org, airlied@linux.ie, vincent.abriou@st.com Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Benjamin Gaignard Subject: [PATCH v1 0/7] Remove debugfs from sti display driver Date: Tue, 5 Jun 2018 15:54:00 +0200 Message-Id: <20180605135407.20214-1-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 2.15.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks to the various atomic_print_state hooks in drm structure all custom debugfs code could be remove from sti driver (~ -330 lines). This patchset does two addtion in drm core: - printing normalized zpos of each plane - add "atomic_print" hook in encoder structure to be able to dump encoders at the same time than the others elements All other patches are implemeting the various hooks in sti driver. Benjamin Gaignard (7): drm: print plane state normalized zpos value drm: add hook to print encoder status drm: sti: make planes use atomic_print_state instead of debugfs drm: sti: make connectors use atomic_print_state instead of debugfs drm: sti: make crtc use atomic_print_state instead of debugfs drm: sti: make encoders use atomic_print_state instead of debugfs drm: sti: remove the last call to debugfs drivers/gpu/drm/drm_atomic.c | 16 +++ drivers/gpu/drm/sti/sti_compositor.c | 16 --- drivers/gpu/drm/sti/sti_compositor.h | 3 - drivers/gpu/drm/sti/sti_crtc.c | 17 +-- drivers/gpu/drm/sti/sti_cursor.c | 65 ++++-------- drivers/gpu/drm/sti/sti_drv.c | 50 --------- drivers/gpu/drm/sti/sti_dvo.c | 60 +++-------- drivers/gpu/drm/sti/sti_gdp.c | 196 +++++++++++------------------------ drivers/gpu/drm/sti/sti_hda.c | 75 ++++---------- drivers/gpu/drm/sti/sti_hdmi.c | 132 ++++++++++------------- drivers/gpu/drm/sti/sti_hqvdp.c | 149 +++++++++++--------------- drivers/gpu/drm/sti/sti_mixer.c | 89 +++++----------- drivers/gpu/drm/sti/sti_mixer.h | 3 +- drivers/gpu/drm/sti/sti_tvout.c | 162 +++++++++++------------------ drivers/gpu/drm/sti/sti_vid.c | 60 ++++------- drivers/gpu/drm/sti/sti_vid.h | 2 +- include/drm/drm_encoder.h | 12 +++ 17 files changed, 386 insertions(+), 721 deletions(-) -- 2.15.0 Reviewed-by: Philippe Cornu