https://bugs.freedesktop.org/show_bug.cgi?id=111273
--- Comment #1 from Trek trek00@inbox.ru --- Created attachment 145226 --> https://bugs.freedesktop.org/attachment.cgi?id=145226&action=edit possible fix
The proposed fix is tested on latest git.
I'm unsure if 65536 is a good limit: it could be small as 64, but even if the longest consecutive registers are 48, may be in the future they are increased and no one remember to higher that limit. Anyway it should not be larger than the PCI BAR area for memory mapped registers, that on my KAVERI is 256K, thus 65536 registers.
ciao!