Skip to contentSkip to conversation

drm/i915/mocs: || vs | typo in get_mocs_settings()

PATCH Applied Dan Carpenter 2 participants 3 messages Jun 13, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915/mocs: || vs | typo in get_mocs_settings()

It seems pretty clear that bitwise OR was intended here and not logical OR.

Fixes 6fc29133eafb ('drm/i915/gen9: Add WaDisableSkipCaching')
drivers/gpu/drm/i915/intel_mocs.c +1 -1
index 8f96c40..3c1482b 100644
@@ -162,7 +162,7 @@ static bool get_mocs_settings(struct drm_i915_private *dev_priv,
 
 		for (i = 0; i < table->size; i++)
 			if (WARN_ON(table->table[i].l3cc_value &
-				    (L3_ESC(1) || L3_SCC(0x7))))
+				    (L3_ESC(1) | L3_SCC(0x7))))
 				return false;
 	}
 

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Dan Carpenter

It seems pretty clear that bitwise OR was intended here and not logical OR.

Fixes 6fc29133eafb ('drm/i915/gen9: Add WaDisableSkipCaching')
Quoted 6 lines
drivers/gpu/drm/i915/intel_mocs.c +0 -0
index 8f96c40..3c1482b 100644

drivers/gpu/drm/i915/intel_mocs.c static bool get_mocs_settings(struct drm_i915_private *dev_priv, · line 168

Quoted 8 lines
drivers/gpu/drm/i915/intel_mocs.c +1 -1
@@ -162,7 +162,7 @@ static bool get_mocs_settings(struct drm_i915_private *dev_priv,
 
 		for (i = 0; i < table->size; i++)
 			if (WARN_ON(table->table[i].l3cc_value &
-				    (L3_ESC(1) || L3_SCC(0x7))))
+				    (L3_ESC(1) | L3_SCC(0x7))))
 				return false;
 	}
 

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#2 lore raw
In reply to Dan Carpenter
Quoted 5 lines · Dan Carpenter

It seems pretty clear that bitwise OR was intended here and not logical OR.

Fixes 6fc29133eafb ('drm/i915/gen9: Add WaDisableSkipCaching')

Pushed to drm-intel-next-queued. Thanks for patch. -Mika

Quoted 14 lines
drivers/gpu/drm/i915/intel_mocs.c +1 -1
index 8f96c40..3c1482b 100644
@@ -162,7 +162,7 @@ static bool get_mocs_settings(struct drm_i915_private *dev_priv,
 
 		for (i = 0; i < table->size; i++)
 			if (WARN_ON(table->table[i].l3cc_value &
-				    (L3_ESC(1) || L3_SCC(0x7))))
+				    (L3_ESC(1) | L3_SCC(0x7))))
 				return false;
 	}