]> git.baikalelectronics.ru Git - uboot.git/commit
x86: tangier: Fix off-by-one error when preparing CSRT
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 29 Aug 2019 14:04:20 +0000 (17:04 +0300)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 10 Sep 2019 08:19:03 +0000 (16:19 +0800)
commit30ea90bb29f3fec643b9ccb4fad90a85456365f8
treeba95f22ec3aaf6a44cdef8e8c011ec8da1340d48
parent674447312b14505636b8ffc1eb3dc9eba10d4d71
x86: tangier: Fix off-by-one error when preparing CSRT

Intel iDMA 32-bit controller has 17 bits for the maximum block size value.
Due to nature of the binary number representation the maximum value is
2^17 - 1. The original code misses the latter part in equation.

Fixes: 12ad2f98bf6c ("x86: tangier: Populate CSRT for shared DMA controller")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/tangier/acpi.c