mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Lucas Stach <l.stach@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] libdrm: version bump 2.4.46 -> 2.4.52
Date: Fri, 24 Jan 2014 11:18:30 +0100	[thread overview]
Message-ID: <1390558710-31680-1-git-send-email-l.stach@pengutronix.de> (raw)

- some freedreno updates
- extented modetest capabilities
- also add a patch to make modeprint output look nicer
  (on it's way to upstream)

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 ...01-modeprint-pretty-print-connector-names.patch | 64 ++++++++++++++++++++++
 patches/libdrm-2.4.52/series                       |  4 ++
 rules/libdrm.make                                  |  4 +-
 3 files changed, 70 insertions(+), 2 deletions(-)
 create mode 100644 patches/libdrm-2.4.52/0001-modeprint-pretty-print-connector-names.patch
 create mode 100644 patches/libdrm-2.4.52/series

diff --git a/patches/libdrm-2.4.52/0001-modeprint-pretty-print-connector-names.patch b/patches/libdrm-2.4.52/0001-modeprint-pretty-print-connector-names.patch
new file mode 100644
index 000000000000..52bc03c3b281
--- /dev/null
+++ b/patches/libdrm-2.4.52/0001-modeprint-pretty-print-connector-names.patch
@@ -0,0 +1,64 @@
+From: Lucas Stach <l.stach@pengutronix.de>
+Date: Fri, 17 Jan 2014 11:43:06 +0100
+Subject: [PATCH] modeprint: pretty print connector names
+
+Use same names as the kernel, makes it easier to identify
+connectors in the common case.
+
+Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
+---
+ tests/modeprint/modeprint.c | 28 +++++++++++++++++++++++++++-
+ 1 file changed, 27 insertions(+), 1 deletion(-)
+
+diff --git a/tests/modeprint/modeprint.c b/tests/modeprint/modeprint.c
+index 545ff40a98d4..6f0d03905a46 100644
+--- a/tests/modeprint/modeprint.c
++++ b/tests/modeprint/modeprint.c
+@@ -41,6 +41,8 @@
+ #include "xf86drm.h"
+ #include "xf86drmMode.h"
+ 
++#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
++
+ int connectors;
+ int full_props;
+ int edid;
+@@ -140,13 +142,37 @@ int printProperty(int fd, drmModeResPtr res, drmModePropertyPtr props, uint64_t
+ 	return 0;
+ }
+ 
++static const char * const output_names[] = { "None",
++					     "VGA",
++					     "DVI-I",
++					     "DVI-D",
++					     "DVI-A",
++					     "Composite",
++					     "SVIDEO",
++					     "LVDS",
++					     "Component",
++					     "DIN",
++					     "DP",
++					     "HDMI-A",
++					     "HDMI-B",
++					     "TV",
++					     "eDP",
++					     "Virtual",
++					     "DSI",
++};
++
+ int printConnector(int fd, drmModeResPtr res, drmModeConnectorPtr connector, uint32_t id)
+ {
+ 	int i = 0;
+ 	struct drm_mode_modeinfo *mode = NULL;
+ 	drmModePropertyPtr props;
+ 
+-	printf("Connector: %d-%d\n", connector->connector_type, connector->connector_type_id);
++	if (connector->connector_type < ARRAY_SIZE(output_names))
++		printf("Connector: %s-%d\n", output_names[connector->connector_type],
++			connector->connector_type_id);
++	else
++		printf("Connector: %d-%d\n", connector->connector_type,
++			connector->connector_type_id);
+ 	printf("\tid             : %i\n", id);
+ 	printf("\tencoder id     : %i\n", connector->encoder_id);
+ 	printf("\tconn           : %s\n", getConnectionText(connector->connection));
diff --git a/patches/libdrm-2.4.52/series b/patches/libdrm-2.4.52/series
new file mode 100644
index 000000000000..9940729949d5
--- /dev/null
+++ b/patches/libdrm-2.4.52/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-modeprint-pretty-print-connector-names.patch
+# 4f0e0cdf8cef84484a8d5999594ce6e9  - git-ptx-patches magic
diff --git a/rules/libdrm.make b/rules/libdrm.make
index e6e7820007d4..4245be3a4714 100644
--- a/rules/libdrm.make
+++ b/rules/libdrm.make
@@ -17,8 +17,8 @@ PACKAGES-$(PTXCONF_LIBDRM) += libdrm
 #
 # Paths and names
 #
-LIBDRM_VERSION	:= 2.4.46
-LIBDRM_MD5	:= b454a43366eb386294f87a5cd16699e6
+LIBDRM_VERSION	:= 2.4.52
+LIBDRM_MD5	:= cb3547ccb435be6d80df68840da6b2ee
 LIBDRM		:= libdrm-$(LIBDRM_VERSION)
 LIBDRM_SUFFIX	:= tar.gz
 LIBDRM_URL	:= http://dri.freedesktop.org/libdrm/$(LIBDRM).$(LIBDRM_SUFFIX)
-- 
1.8.5.2


-- 
ptxdist mailing list
ptxdist@pengutronix.de

                 reply	other threads:[~2014-01-24 10:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1390558710-31680-1-git-send-email-l.stach@pengutronix.de \
    --to=l.stach@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox