drm/i915: fix INTEL_BDW_IDS definition
Subsystems (2)
PATCH 1/3 drm/i915: fix INTEL_BDW_IDS definition
Remove duplicated IDs from the list. Currently, this definition is only used by early-quirks.c. From my understanding of the code, having duplicated IDs shouldn't be causing any bugs.
--- include/drm/i915_pciids.h | 2 -- 1 file changed, 2 deletions(-)
include/drm/i915_pciids.h +0 -2
@@ -240,8 +240,6 @@INTEL_BDW_GT12_IDS (info), \INTEL_BDW_GT3_IDS (info), \INTEL_BDW_RSVDM_IDS (info), \ -INTEL_BDW_GT12_IDS (info ), \ -INTEL_BDW_GT3_IDS (info ), \ INTEL_BDW_RSVDD_IDS(info)#define INTEL_CHV_IDS (info) \
Signature · 6 lines
2.7.4 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/3 drm/i915: more .is_mobile cleanups for BDW
Commit 8d9c20e1d1e3 ("drm/i915: Remove .is_mobile field from platform struct") removed mobile vs desktop differences for HSW+, but forgot the Broadwell reserved IDs, so do it now.
It's interesting to notice that these IDs are used by early-quirks.c but are *not* used by i915_pci.c.
--- include/drm/i915_pciids.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
include/drm/i915_pciids.h +3 -6
@@ -226,21 +226,18 @@INTEL_VGA_DEVICE (0x162A , info),/* Server */ \ INTEL_VGA_DEVICE(0x162D, info) /* Workstation */ -#define INTEL_BDW_RSVDM_IDS (info) \ +#define INTEL_BDW_RSVD_IDS (info) \ INTEL_VGA_DEVICE(0x1632, info),/* ULT */ \INTEL_VGA_DEVICE (0x1636 , info),/* ULT */ \INTEL_VGA_DEVICE (0x163B , info),/* Iris */ \ - INTEL_VGA_DEVICE(0x163E, info) /* ULX */ - -#define INTEL_BDW_RSVDD_IDS (info) \ +INTEL_VGA_DEVICE (0x163E , info),/* ULX */ \INTEL_VGA_DEVICE (0x163A , info),/* Server */ \ INTEL_VGA_DEVICE(0x163D, info) /* Workstation */#define INTEL_BDW_IDS (info) \ INTEL_BDW_GT12_IDS(info), \ INTEL_BDW_GT3_IDS(info), \ - INTEL_BDW_RSVDM_IDS(info), \ - INTEL_BDW_RSVDD_IDS(info) + INTEL_BDW_RSVD_IDS(info)#define INTEL_CHV_IDS (info) \ INTEL_VGA_DEVICE(0x22b0, info), \
Signature · 6 lines
2.7.4 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/3] drm/i915: more .is_mobile cleanups for BDW
Quoted 33 lines · Paulo Zanoni
Commit
8d9c20e1d1e3("drm/i915: Remove .is_mobile field from platform struct") removed mobile vs desktop differences for HSW+, but forgot the Broadwell reserved IDs, so do it now.It's interesting to notice that these IDs are used by
early-quirks.cbut are *not* used byi915_pci.c.Cc Carlos Santa <[email protected]>Cc Rodrigo Vivi <[email protected]>Signed-off-by Paulo Zanoni <[email protected]>--- include/drm/i915_pciids.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)include/drm/i915_pciids.h +2
-4@@ -226,21 +226,18 @@INTEL_VGA_DEVICE (0x162A , info),/* Server */ \ INTEL_VGA_DEVICE(0x162D, info) /* Workstation */ -#define INTEL_BDW_RSVDM_IDS (info) \ +#define INTEL_BDW_RSVD_IDS (info) \ INTEL_VGA_DEVICE(0x1632, info),/* ULT */ \INTEL_VGA_DEVICE (0x1636 , info),/* ULT */ \INTEL_VGA_DEVICE (0x163B , info),/* Iris */ \ - INTEL_VGA_DEVICE(0x163E, info) /* ULX */ - -#define INTEL_BDW_RSVDD_IDS (info) \ +INTEL_VGA_DEVICE (0x163E , info),/* ULX */ \INTEL_VGA_DEVICE (0x163A , info),/* Server */ \INTEL_VGA_DEVICE (0x163D , info)/* Workstation */
include/drm/i915_pciids.h line 243
Quoted 10 lines
include/drm/i915_pciids.h +1
-2#define INTEL_BDW_IDS (info) \ INTEL_BDW_GT12_IDS(info), \ INTEL_BDW_GT3_IDS(info), \ - INTEL_BDW_RSVDM_IDS(info), \ - INTEL_BDW_RSVDD_IDS(info) + INTEL_BDW_RSVD_IDS(info)#define INTEL_CHV_IDS (info) \ INTEL_VGA_DEVICE(0x22b0, info), \
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RFC 3/3 drm/i915: actually drive the BDW reserved IDs
In reply to Paulo ZanoniBack in 2014, commit fb7023e0e248 ("drm/i915: BDW: Adding Reserved PCI IDs.") added the reserved PCI IDs in order to try to make sure we had working drivers in case we ever released products using these IDs (since we had instances of this type of problem in the past). The problem is that the patch only touched the macros used by early-quirks.c and by the user space components that rely on i915_pciids.h, it didn't touch the macros used by i915_pci.c. So we correctly handled the stolen memory for these theoretical IDs, but we didn't actually drive the devices from i915.ko.
So this patch fixes the original commit by actually making i915.ko drive these IDs, which was the goal. There's no information on what would be the GT count on these IDs, so we just go with the safer intel_broadwell_info, at the risk of ignoring a possibly inexistent BSD2_RING.
I did some checking, and it seems that these IDs are driven by intel-gpu-tools, xf86-video-intel and libdrm (since they contain old copies of i915_pciids.h), but they are not checked by mesa.
The alternative to this patch would be to just assume we're actually never going to use these IDs, and then remove them from our ID lists and make sure our user space components sync the latest i915_pciids.h copy. I'm fine with either approaches, as long as we make sure that every component tries to drive the same list of PCI IDs.
--- drivers/gpu/drm/i915/i915_pci.c | 1 + 1 file changed, 1 insertion(+)
I'm not even sure if this deserves a Cc: stable tag...
drivers/gpu/drm/i915/i915_pci.c +1 -0
@@ -456,6 +456,7 @@ static const struct pci_device_id pciidlist[] = {INTEL_VLV_IDS (&intel_valleyview_info),INTEL_BDW_GT12_IDS (&intel_broadwell_info),INTEL_BDW_GT3_IDS (&intel_broadwell_gt3_info), +INTEL_BDW_RSVD_IDS (&intel_broadwell_info),INTEL_CHV_IDS (&intel_cherryview_info),INTEL_SKL_GT1_IDS (&intel_skylake_info), INTEL_SKL_GT2_IDS(&intel_skylake_info),
Signature · 6 lines
2.7.4 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [RFC 3/3] drm/i915: actually drive the BDW reserved IDs
Quoted 20 lines · Paulo Zanoni
Back in 2014, commit
fb7023e0e248("drm/i915: BDW: Adding Reserved PCI IDs.") added the reserved PCI IDs in order to try to make sure we had working drivers in case we ever released products using these IDs (since we had instances of this type of problem in the past). The problem is that the patch only touched the macros used byearly-quirks.cand by the user space components that rely oni915_pciids.h, it didn't touch the macros used byi915_pci.c. So we correctly handled the stolen memory for these theoretical IDs, but we didn't actually drive the devices from i915.ko.So this patch fixes the original commit by actually making i915.ko drive these IDs, which was the goal. There's no information on what would be the GT count on these IDs, so we just go with the safer
intel_broadwell_info, at the risk of ignoring a possibly inexistentBSD2_RING.I did some checking, and it seems that these IDs are driven by intel-gpu-tools, xf86-video-intel and libdrm (since they contain old copies of
i915_pciids.h), but they are not checked by mesa.
Quoted 5 lines
The alternative to this patch would be to just assume we're actually never going to use these IDs, and then remove them from our ID lists and make sure our user space components sync the latest
i915_pciids.hcopy. I'm fine with either approaches, as long as we make sure that every component tries to drive the same list of PCI IDs.
I prefer to assume that it is possible that this device will be used at some point since it is on spec as reserved.
So,
Quoted 17 lines
Fixes fb7023e0e248 ("drm/i915: BDW: Adding Reserved PCI IDs.")Cc Rodrigo Vivi <[email protected]>Cc Ben Widawsky <[email protected]>Cc Jani Nikula <[email protected]>Signed-off-by Paulo Zanoni <[email protected]>--- drivers/gpu/drm/i915/i915_pci.c | 1 + 1 file changed, 1 insertion(+)I'm not even sure if this deserves a Cc: stable tag...
drivers/gpu/drm/i915/i915_pci.c +0
-0
drivers/gpu/drm/i915/i915_pci.c static const struct pci_device_id pciidlist[] = { · line 462
Quoted 7 lines
drivers/gpu/drm/i915/i915_pci.c +1
-0@@ -456,6 +456,7 @@ static const struct pci_device_id pciidlist[] = {INTEL_VLV_IDS (&intel_valleyview_info),INTEL_BDW_GT12_IDS (&intel_broadwell_info),INTEL_BDW_GT3_IDS (&intel_broadwell_gt3_info), +INTEL_BDW_RSVD_IDS (&intel_broadwell_info),INTEL_CHV_IDS (&intel_cherryview_info),INTEL_SKL_GT1_IDS (&intel_skylake_info), INTEL_SKL_GT2_IDS(&intel_skylake_info),
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 17 lines · Paulo Zanoni
Remove duplicated IDs from the list. Currently, this definition is only used by
early-quirks.c. From my understanding of the code, having duplicated IDs shouldn't be causing any bugs.Fixes 8d9c20e1d1e3 ("drm/i915: Remove .is_mobile field from platform struct")Cc Carlos Santa <[email protected]>Cc Rodrigo Vivi <[email protected]>Signed-off-by Paulo Zanoni <[email protected]>--- include/drm/i915_pciids.h | 2 -- 1 file changed, 2 deletions(-)include/drm/i915_pciids.h +0
-0
include/drm/i915_pciids.h line 245
Quoted 8 lines
include/drm/i915_pciids.h +0
-2@@ -240,8 +240,6 @@INTEL_BDW_GT12_IDS (info), \INTEL_BDW_GT3_IDS (info), \INTEL_BDW_RSVDM_IDS (info), \ -INTEL_BDW_GT12_IDS (info ), \ -INTEL_BDW_GT3_IDS (info ), \ INTEL_BDW_RSVDD_IDS(info)#define INTEL_CHV_IDS (info) \
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for series starting with [1/3] drm/i915: fix INTEL_BDW_IDS definition
In reply to Paulo Zanoni== Series Details ==
== Series Details ==
Series: series starting with [1/3] drm/i915: fix INTEL_BDW_IDS definition
URL : https://patchwork.freedesktop.org/series/17445/
State : success
== Summary ==
Series 17445v1 Series without cover letter
https://patchwork.freedesktop.org/api/1.0/series/17445/revisions/1/mbox/
fi-bdw-5557u total:246 pass:232 dwarn:0 dfail:0 fail:0 skip:14 fi-bsw-n3050 total:246 pass:207 dwarn:0 dfail:0 fail:0 skip:39 fi-bxt-j4205 total:246 pass:224 dwarn:0 dfail:0 fail:0 skip:22 fi-bxt-t5700 total:82 pass:69 dwarn:0 dfail:0 fail:0 skip:12 fi-byt-j1900 total:246 pass:219 dwarn:0 dfail:0 fail:0 skip:27 fi-byt-n2820 total:246 pass:215 dwarn:0 dfail:0 fail:0 skip:31 fi-hsw-4770 total:246 pass:227 dwarn:0 dfail:0 fail:0 skip:19 fi-hsw-4770r total:246 pass:227 dwarn:0 dfail:0 fail:0 skip:19 fi-ivb-3520m total:246 pass:225 dwarn:0 dfail:0 fail:0 skip:21 fi-ivb-3770 total:246 pass:225 dwarn:0 dfail:0 fail:0 skip:21 fi-kbl-7500u total:246 pass:225 dwarn:0 dfail:0 fail:0 skip:21 fi-skl-6260u total:246 pass:233 dwarn:0 dfail:0 fail:0 skip:13 fi-skl-6700hq total:246 pass:226 dwarn:0 dfail:0 fail:0 skip:20 fi-skl-6700k total:246 pass:222 dwarn:3 dfail:0 fail:0 skip:21 fi-skl-6770hq total:246 pass:233 dwarn:0 dfail:0 fail:0 skip:13 fi-snb-2520m total:246 pass:215 dwarn:0 dfail:0 fail:0 skip:31 fi-snb-2600 total:246 pass:214 dwarn:0 dfail:0 fail:0 skip:32
bcc5c7c32d36f7d59503a0c812401d013d372517 drm-tip: 2017y-01m-03d-13h-42m-11s UTC integration manifest 2d20e29 drm/i915: actually drive the BDW reserved IDs
ef6de86 drm/i915: more .is_mobile cleanups for BDW
1af70eb drm/i915: fix INTEL_BDW_IDS definition
== Logs ==
For more details see: https://intel-gfx-ci.01.org/CI/Patchwork_3425/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx