Skip to content

Commit be53bfd

Browse files
committed
Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux
Pull drm main changes from Dave Airlie: "This is the main drm pull request, I'm probably going to send two more smaller ones, will explain below. This contains a patch that is also in the fbdev tree, but it should be the same patch, it added an API for hot unplugging framebuffer devices, and I need that API for a new driver. It also contains some changes to the i2c tree which Jean has acked, and one change to moorestown platform stuff in x86. Highlights: - new drivers: UDL driver for USB displaylink devices, kms only, should support correct hotplug operations. - core: i2c speedups + better hotplug support, EDID overriding via firmware interface - allows user to load a firmware for a broken monitor/kvm from userspace, it even has documentation for it. - exynos: new HDMI audio + hdmi 1.4 + virtual output driver - gma500: code cleanup - radeon: cleanups, CS optimisations, streamout support and pageflip fix - nouveau: NVD9 displayport support + more reclocking work - i915: re-enabling GMBUS, finish gpu patch (might help hibernation who knows), missed irq fixes, stencil tiling fixes, interlaced support, aliasesd PPGTT support for SNB/IVB, swizzling for SNB/IVB, semaphore fixes As well as the usual bunch of cleanups and fixes all over the place. I've got two things I'd like to merge a bit later: a) AMD support for all their new radeonhd 7000 series GPU and APUs. AMD dropped this a bit late due to insane internal review processes, (please AMD just follow Intel and let open source guys ship stuff early) however I don't want to penalise people who own this hardware (since its been on sale for 3-4 months and GPU hw doesn't exactly have a lifetime in years) and consign them to using closed drivers for longer than necessary. The changes are well contained and just plug into the driver new gpu functionality so they should be fairly regression proof. I just want to give them a bit of a run on the hw AMD kindly sent me. b) drm prime/dma-buf interface code. This is just infrastructure code to expose the dma-buf stuff to drm drivers and to userspace. I'm not planning on pushing any driver support in this cycle (except maybe exynos), but I'd like to get the infrastructure code in so for the next cycle I can start getting the driver support into the individual drivers. We have started driver support for i915, nouveau and udl along with I think exynos and omap in staging. However this code relies on the dma-buf tree being pulled into your tree first since it needs the latest interfaces from that tree. I'll push to get that tree sent asap. (oh and any warnings you see in i915 are gcc's fault from what anyone can see)." Fix up trivial conflicts in arch/x86/platform/mrst/mrst.c due to the new msic_thermal_platform_data() thermal function being added next to the tc35876x_platform_data() i2c device function.. * 'drm-next' of git://people.freedesktop.org/~airlied/linux: (326 commits) drm/i915: use DDC_ADDR instead of hard-coding it drm/radeon: use DDC_ADDR instead of hard-coding it drm: remove unneeded redefinition of DDC_ADDR drm/exynos: added virtual display driver. drm: allow loading an EDID as firmware to override broken monitor drm/exynos: enable hdmi audio feature drm/exynos: add default pixel format for plane drm/exynos: cleanup exynos_hdmi.h drm/exynos: add is_local member in exynos_drm_subdrv struct drm/exynos: add subdrv open/close functions drm/exynos: remove module of exynos drm subdrv drm/exynos: release pending pageflip events when closed drm/exynos: added new funtion to get/put dma address. drm/exynos: update gem and buffer framework. drm/exynos: added mode_fixup feature and code clean. drm/exynos: add HDMI version 1.4 support drm/exynos: remove exynos_mixer.h gma500: Fix mmap frambuffer drm/radeon: Drop radeon_gem_object_(un)pin. drm/radeon: Restrict offset for legacy display engine. ...
2 parents b2094ef + 5466c7b commit be53bfd

271 files changed

Lines changed: 22732 additions & 6456 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/EDID/1024x768.S‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
1024x768.S: EDID data set for standard 1024x768 60 Hz monitor
3+
4+
Copyright (C) 2011 Carsten Emde <C.Emde@osadl.org>
5+
6+
This program is free software; you can redistribute it and/or
7+
modify it under the terms of the GNU General Public License
8+
as published by the Free Software Foundation; either version 2
9+
of the License, or (at your option) any later version.
10+
11+
This program is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
GNU General Public License for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with this program; if not, write to the Free Software
18+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19+
*/
20+
21+
/* EDID */
22+
#define VERSION 1
23+
#define REVISION 3
24+
25+
/* Display */
26+
#define CLOCK 65000 /* kHz */
27+
#define XPIX 1024
28+
#define YPIX 768
29+
#define XY_RATIO XY_RATIO_4_3
30+
#define XBLANK 320
31+
#define YBLANK 38
32+
#define XOFFSET 8
33+
#define XPULSE 144
34+
#define YOFFSET (63+3)
35+
#define YPULSE (63+6)
36+
#define DPI 72
37+
#define VFREQ 60 /* Hz */
38+
#define TIMING_NAME "Linux XGA"
39+
#define ESTABLISHED_TIMINGS_BITS 0x08 /* Bit 3 -> 1024x768 @60 Hz */
40+
#define HSYNC_POL 0
41+
#define VSYNC_POL 0
42+
#define CRC 0x55
43+
44+
#include "edid.S"

‎Documentation/EDID/1280x1024.S‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
1280x1024.S: EDID data set for standard 1280x1024 60 Hz monitor
3+
4+
Copyright (C) 2011 Carsten Emde <C.Emde@osadl.org>
5+
6+
This program is free software; you can redistribute it and/or
7+
modify it under the terms of the GNU General Public License
8+
as published by the Free Software Foundation; either version 2
9+
of the License, or (at your option) any later version.
10+
11+
This program is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
GNU General Public License for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with this program; if not, write to the Free Software
18+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19+
*/
20+
21+
/* EDID */
22+
#define VERSION 1
23+
#define REVISION 3
24+
25+
/* Display */
26+
#define CLOCK 108000 /* kHz */
27+
#define XPIX 1280
28+
#define YPIX 1024
29+
#define XY_RATIO XY_RATIO_5_4
30+
#define XBLANK 408
31+
#define YBLANK 42
32+
#define XOFFSET 48
33+
#define XPULSE 112
34+
#define YOFFSET (63+1)
35+
#define YPULSE (63+3)
36+
#define DPI 72
37+
#define VFREQ 60 /* Hz */
38+
#define TIMING_NAME "Linux SXGA"
39+
#define ESTABLISHED_TIMINGS_BITS 0x00 /* none */
40+
#define HSYNC_POL 1
41+
#define VSYNC_POL 1
42+
#define CRC 0xa0
43+
44+
#include "edid.S"

‎Documentation/EDID/1680x1050.S‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
1680x1050.S: EDID data set for standard 1680x1050 60 Hz monitor
3+
4+
Copyright (C) 2012 Carsten Emde <C.Emde@osadl.org>
5+
6+
This program is free software; you can redistribute it and/or
7+
modify it under the terms of the GNU General Public License
8+
as published by the Free Software Foundation; either version 2
9+
of the License, or (at your option) any later version.
10+
11+
This program is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
GNU General Public License for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with this program; if not, write to the Free Software
18+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19+
*/
20+
21+
/* EDID */
22+
#define VERSION 1
23+
#define REVISION 3
24+
25+
/* Display */
26+
#define CLOCK 146250 /* kHz */
27+
#define XPIX 1680
28+
#define YPIX 1050
29+
#define XY_RATIO XY_RATIO_16_10
30+
#define XBLANK 560
31+
#define YBLANK 39
32+
#define XOFFSET 104
33+
#define XPULSE 176
34+
#define YOFFSET (63+3)
35+
#define YPULSE (63+6)
36+
#define DPI 96
37+
#define VFREQ 60 /* Hz */
38+
#define TIMING_NAME "Linux WSXGA"
39+
#define ESTABLISHED_TIMINGS_BITS 0x00 /* none */
40+
#define HSYNC_POL 1
41+
#define VSYNC_POL 1
42+
#define CRC 0x26
43+
44+
#include "edid.S"

‎Documentation/EDID/1920x1080.S‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
1920x1080.S: EDID data set for standard 1920x1080 60 Hz monitor
3+
4+
Copyright (C) 2012 Carsten Emde <C.Emde@osadl.org>
5+
6+
This program is free software; you can redistribute it and/or
7+
modify it under the terms of the GNU General Public License
8+
as published by the Free Software Foundation; either version 2
9+
of the License, or (at your option) any later version.
10+
11+
This program is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
GNU General Public License for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with this program; if not, write to the Free Software
18+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19+
*/
20+
21+
/* EDID */
22+
#define VERSION 1
23+
#define REVISION 3
24+
25+
/* Display */
26+
#define CLOCK 148500 /* kHz */
27+
#define XPIX 1920
28+
#define YPIX 1080
29+
#define XY_RATIO XY_RATIO_16_9
30+
#define XBLANK 280
31+
#define YBLANK 45
32+
#define XOFFSET 88
33+
#define XPULSE 44
34+
#define YOFFSET (63+4)
35+
#define YPULSE (63+5)
36+
#define DPI 96
37+
#define VFREQ 60 /* Hz */
38+
#define TIMING_NAME "Linux FHD"
39+
#define ESTABLISHED_TIMINGS_BITS 0x00 /* none */
40+
#define HSYNC_POL 1
41+
#define VSYNC_POL 1
42+
#define CRC 0x05
43+
44+
#include "edid.S"

‎Documentation/EDID/HOWTO.txt‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
In the good old days when graphics parameters were configured explicitly
2+
in a file called xorg.conf, even broken hardware could be managed.
3+
4+
Today, with the advent of Kernel Mode Setting, a graphics board is
5+
either correctly working because all components follow the standards -
6+
or the computer is unusable, because the screen remains dark after
7+
booting or it displays the wrong area. Cases when this happens are:
8+
- The graphics board does not recognize the monitor.
9+
- The graphics board is unable to detect any EDID data.
10+
- The graphics board incorrectly forwards EDID data to the driver.
11+
- The monitor sends no or bogus EDID data.
12+
- A KVM sends its own EDID data instead of querying the connected monitor.
13+
Adding the kernel parameter "nomodeset" helps in most cases, but causes
14+
restrictions later on.
15+
16+
As a remedy for such situations, the kernel configuration item
17+
CONFIG_DRM_LOAD_EDID_FIRMWARE was introduced. It allows to provide an
18+
individually prepared or corrected EDID data set in the /lib/firmware
19+
directory from where it is loaded via the firmware interface. The code
20+
(see drivers/gpu/drm/drm_edid_load.c) contains built-in data sets for
21+
commonly used screen resolutions (1024x768, 1280x1024, 1680x1050,
22+
1920x1080) as binary blobs, but the kernel source tree does not contain
23+
code to create these data. In order to elucidate the origin of the
24+
built-in binary EDID blobs and to facilitate the creation of individual
25+
data for a specific misbehaving monitor, commented sources and a
26+
Makefile environment are given here.
27+
28+
To create binary EDID and C source code files from the existing data
29+
material, simply type "make".
30+
31+
If you want to create your own EDID file, copy the file 1024x768.S and
32+
replace the settings with your own data. The CRC value in the last line
33+
#define CRC 0x55
34+
is a bit tricky. After a first version of the binary data set is
35+
created, it must be be checked with the "edid-decode" utility which will
36+
most probably complain about a wrong CRC. Fortunately, the utility also
37+
displays the correct CRC which must then be inserted into the source
38+
file. After the make procedure is repeated, the EDID data set is ready
39+
to be used.

‎Documentation/EDID/Makefile‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
SOURCES := $(wildcard [0-9]*x[0-9]*.S)
3+
4+
BIN := $(patsubst %.S, %.bin, $(SOURCES))
5+
6+
IHEX := $(patsubst %.S, %.bin.ihex, $(SOURCES))
7+
8+
CODE := $(patsubst %.S, %.c, $(SOURCES))
9+
10+
all: $(BIN) $(IHEX) $(CODE)
11+
12+
clean:
13+
@rm -f *.o *.bin.ihex *.bin *.c
14+
15+
%.o: %.S
16+
@cc -c $^
17+
18+
%.bin: %.o
19+
@objcopy -Obinary $^ $@
20+
21+
%.bin.ihex: %.o
22+
@objcopy -Oihex $^ $@
23+
@dos2unix $@ 2>/dev/null
24+
25+
%.c: %.bin
26+
@echo "{" >$@; hexdump -f hex $^ >>$@; echo "};" >>$@

0 commit comments

Comments
 (0)