Thread (13 messages) flat view 13 messages, 7 authors, 2016-02-12

[PATCH] of/irq: Fix msi-map calculation for nonzero rid-base

From: robin.murphy@arm.com (Robin Murphy)
Date: 2016-02-09 16:17:41
Also in: linux-devicetree, lkml, stable

On 09/02/16 16:08, Mark Rutland wrote:
[...]
quoted
quoted
quoted
having msi-map-mask clash with a nonzero rid-base, as that's another
thing one can easily get wrong.
[...]
quoted
quoted
quoted
+		if (rid_base & ~map_mask) {
+			dev_err(parent_dev,
+				"Invalid msi-map translation - msi-map-mask (0x%x) ignores rid-
base (0x%x)\n",
quoted
+				map_mask, rid_base);
+			return rid_out;
+		}
[...]
quoted
                    msi-map = <0x0100 &its 0x11 0x1>;
                    msi-map-mask = <0xff>;
I'd say that this is an inconsistent set of properties, and it's
probably worth warning if we encounter this. There is no possible way
that rid-base can be encountered.
Indeed ;)

Robin.
Thanks,
Mark.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help