aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorMarc Zyngier <[email protected]>2016-01-26 14:24:15 +0000
committerThomas Gleixner <[email protected]>2016-01-26 16:34:06 +0100
commit18aa60ce2751c95d3412ed06a58b8b6cfb6f88f2 (patch)
treeef3edb1c9ad9e788b19361bde9be10dea539dab9 /lib/netdev-notifier-error-inject.c
parentbb1a793125d9cc61f2d1cff92fe3927fec45d528 (diff)
irqchip/gic-v3-its: Recompute the number of pages on page size change
When the programming of a GITS_BASERn register fails because of an unsupported ITS page size, we retry it with a smaller page size. Unfortunately, we don't recompute the number of allocated ITS pages, indicating the wrong value computed in the original allocation. A convenient fix is to free the pages we allocated, update the page size, and restart the allocation. This will ensure that we always allocate the right amount in the case of a device table, specially if we have to reduce the allocation order to stay within the boundaries of the ITS maximum allocation. Reported-and-tested-by: Ma Jun <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Cc: [email protected] Cc: Jason Cooper <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions