Skip to content

Commit 85afd82

Browse files
committed
Merge branch 'drm-next' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6
* 'drm-next' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: drm/radeon/r600: set correct pitch for 4 byte copy drm/radeon: consolidate family flags used in pciids.
2 parents a7c367b + 5b31aee commit 85afd82

File tree

5 files changed

+102
-123
lines changed

5 files changed

+102
-123
lines changed

drivers/gpu/drm/radeon/r600_blit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ r600_blit_copy(struct drm_device *dev,
737737

738738
/* dst */
739739
set_render_target(dev_priv, COLOR_8_8_8_8,
740-
dst_x + cur_size, h,
740+
(dst_x + cur_size) / 4, h,
741741
dst_gpu_addr);
742742

743743
/* scissors */

drivers/gpu/drm/radeon/r600_blit_kms.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ void r600_kms_blit_copy(struct radeon_device *rdev,
774774

775775
/* dst 23 */
776776
set_render_target(rdev, COLOR_8_8_8_8,
777-
dst_x + cur_size, h,
777+
(dst_x + cur_size) / 4, h,
778778
dst_gpu_addr);
779779

780780
/* scissors 12 */

drivers/gpu/drm/radeon/radeon.h

Lines changed: 1 addition & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
#include <linux/list.h>
5050
#include <linux/kref.h>
5151

52+
#include "radeon_family.h"
5253
#include "radeon_mode.h"
5354
#include "radeon_reg.h"
5455

@@ -77,64 +78,6 @@ extern int radeon_tv;
7778
#define RADEONFB_CONN_LIMIT 4
7879
#define RADEON_BIOS_NUM_SCRATCH 8
7980

80-
enum radeon_family {
81-
CHIP_R100,
82-
CHIP_RV100,
83-
CHIP_RS100,
84-
CHIP_RV200,
85-
CHIP_RS200,
86-
CHIP_R200,
87-
CHIP_RV250,
88-
CHIP_RS300,
89-
CHIP_RV280,
90-
CHIP_R300,
91-
CHIP_R350,
92-
CHIP_RV350,
93-
CHIP_RV380,
94-
CHIP_R420,
95-
CHIP_R423,
96-
CHIP_RV410,
97-
CHIP_RS400,
98-
CHIP_RS480,
99-
CHIP_RS600,
100-
CHIP_RS690,
101-
CHIP_RS740,
102-
CHIP_RV515,
103-
CHIP_R520,
104-
CHIP_RV530,
105-
CHIP_RV560,
106-
CHIP_RV570,
107-
CHIP_R580,
108-
CHIP_R600,
109-
CHIP_RV610,
110-
CHIP_RV630,
111-
CHIP_RV670,
112-
CHIP_RV620,
113-
CHIP_RV635,
114-
CHIP_RS780,
115-
CHIP_RS880,
116-
CHIP_RV770,
117-
CHIP_RV730,
118-
CHIP_RV710,
119-
CHIP_RV740,
120-
CHIP_LAST,
121-
};
122-
123-
enum radeon_chip_flags {
124-
RADEON_FAMILY_MASK = 0x0000ffffUL,
125-
RADEON_FLAGS_MASK = 0xffff0000UL,
126-
RADEON_IS_MOBILITY = 0x00010000UL,
127-
RADEON_IS_IGP = 0x00020000UL,
128-
RADEON_SINGLE_CRTC = 0x00040000UL,
129-
RADEON_IS_AGP = 0x00080000UL,
130-
RADEON_HAS_HIERZ = 0x00100000UL,
131-
RADEON_IS_PCIE = 0x00200000UL,
132-
RADEON_NEW_MEMMAP = 0x00400000UL,
133-
RADEON_IS_PCI = 0x00800000UL,
134-
RADEON_IS_IGPGART = 0x01000000UL,
135-
};
136-
137-
13881
/*
13982
* Errata workarounds.
14083
*/

drivers/gpu/drm/radeon/radeon_drv.h

Lines changed: 2 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
#include <linux/firmware.h>
3535
#include <linux/platform_device.h>
3636

37+
#include "radeon_family.h"
38+
3739
/* General customization:
3840
*/
3941

@@ -109,75 +111,12 @@
109111
#define DRIVER_MINOR 31
110112
#define DRIVER_PATCHLEVEL 0
111113

112-
/*
113-
* Radeon chip families
114-
*/
115-
enum radeon_family {
116-
CHIP_R100,
117-
CHIP_RV100,
118-
CHIP_RS100,
119-
CHIP_RV200,
120-
CHIP_RS200,
121-
CHIP_R200,
122-
CHIP_RV250,
123-
CHIP_RS300,
124-
CHIP_RV280,
125-
CHIP_R300,
126-
CHIP_R350,
127-
CHIP_RV350,
128-
CHIP_RV380,
129-
CHIP_R420,
130-
CHIP_R423,
131-
CHIP_RV410,
132-
CHIP_RS400,
133-
CHIP_RS480,
134-
CHIP_RS600,
135-
CHIP_RS690,
136-
CHIP_RS740,
137-
CHIP_RV515,
138-
CHIP_R520,
139-
CHIP_RV530,
140-
CHIP_RV560,
141-
CHIP_RV570,
142-
CHIP_R580,
143-
CHIP_R600,
144-
CHIP_RV610,
145-
CHIP_RV630,
146-
CHIP_RV620,
147-
CHIP_RV635,
148-
CHIP_RV670,
149-
CHIP_RS780,
150-
CHIP_RS880,
151-
CHIP_RV770,
152-
CHIP_RV730,
153-
CHIP_RV710,
154-
CHIP_RV740,
155-
CHIP_LAST,
156-
};
157-
158114
enum radeon_cp_microcode_version {
159115
UCODE_R100,
160116
UCODE_R200,
161117
UCODE_R300,
162118
};
163119

164-
/*
165-
* Chip flags
166-
*/
167-
enum radeon_chip_flags {
168-
RADEON_FAMILY_MASK = 0x0000ffffUL,
169-
RADEON_FLAGS_MASK = 0xffff0000UL,
170-
RADEON_IS_MOBILITY = 0x00010000UL,
171-
RADEON_IS_IGP = 0x00020000UL,
172-
RADEON_SINGLE_CRTC = 0x00040000UL,
173-
RADEON_IS_AGP = 0x00080000UL,
174-
RADEON_HAS_HIERZ = 0x00100000UL,
175-
RADEON_IS_PCIE = 0x00200000UL,
176-
RADEON_NEW_MEMMAP = 0x00400000UL,
177-
RADEON_IS_PCI = 0x00800000UL,
178-
RADEON_IS_IGPGART = 0x01000000UL,
179-
};
180-
181120
typedef struct drm_radeon_freelist {
182121
unsigned int age;
183122
struct drm_buf *buf;
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
/*
2+
* Copyright 2008 Advanced Micro Devices, Inc.
3+
* Copyright 2008 Red Hat Inc.
4+
* Copyright 2009 Jerome Glisse.
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a
7+
* copy of this software and associated documentation files (the "Software"),
8+
* to deal in the Software without restriction, including without limitation
9+
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
10+
* and/or sell copies of the Software, and to permit persons to whom the
11+
* Software is furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19+
* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
20+
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21+
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
* OTHER DEALINGS IN THE SOFTWARE.
23+
*
24+
* Authors: Dave Airlie
25+
* Alex Deucher
26+
* Jerome Glisse
27+
*/
28+
29+
/* this file defines the CHIP_ and family flags used in the pciids,
30+
* its is common between kms and non-kms because duplicating it and
31+
* changing one place is fail.
32+
*/
33+
#ifndef RADEON_FAMILY_H
34+
#define RADEON_FAMILY_H
35+
/*
36+
* Radeon chip families
37+
*/
38+
enum radeon_family {
39+
CHIP_R100,
40+
CHIP_RV100,
41+
CHIP_RS100,
42+
CHIP_RV200,
43+
CHIP_RS200,
44+
CHIP_R200,
45+
CHIP_RV250,
46+
CHIP_RS300,
47+
CHIP_RV280,
48+
CHIP_R300,
49+
CHIP_R350,
50+
CHIP_RV350,
51+
CHIP_RV380,
52+
CHIP_R420,
53+
CHIP_R423,
54+
CHIP_RV410,
55+
CHIP_RS400,
56+
CHIP_RS480,
57+
CHIP_RS600,
58+
CHIP_RS690,
59+
CHIP_RS740,
60+
CHIP_RV515,
61+
CHIP_R520,
62+
CHIP_RV530,
63+
CHIP_RV560,
64+
CHIP_RV570,
65+
CHIP_R580,
66+
CHIP_R600,
67+
CHIP_RV610,
68+
CHIP_RV630,
69+
CHIP_RV670,
70+
CHIP_RV620,
71+
CHIP_RV635,
72+
CHIP_RS780,
73+
CHIP_RS880,
74+
CHIP_RV770,
75+
CHIP_RV730,
76+
CHIP_RV710,
77+
CHIP_RV740,
78+
CHIP_LAST,
79+
};
80+
81+
/*
82+
* Chip flags
83+
*/
84+
enum radeon_chip_flags {
85+
RADEON_FAMILY_MASK = 0x0000ffffUL,
86+
RADEON_FLAGS_MASK = 0xffff0000UL,
87+
RADEON_IS_MOBILITY = 0x00010000UL,
88+
RADEON_IS_IGP = 0x00020000UL,
89+
RADEON_SINGLE_CRTC = 0x00040000UL,
90+
RADEON_IS_AGP = 0x00080000UL,
91+
RADEON_HAS_HIERZ = 0x00100000UL,
92+
RADEON_IS_PCIE = 0x00200000UL,
93+
RADEON_NEW_MEMMAP = 0x00400000UL,
94+
RADEON_IS_PCI = 0x00800000UL,
95+
RADEON_IS_IGPGART = 0x01000000UL,
96+
};
97+
#endif

0 commit comments

Comments
 (0)