Re: power of 2 revisited

2021-12-30 Thread Ted Bullock
On 2021-12-29 10:18 p.m., Jonathan Gray wrote: > On Wed, Dec 29, 2021 at 09:27:34PM -0700, Ted Bullock wrote: >> This is around documenting peculiar behaviour around power of 2 math in >> the kernel. >> >> I'm wondering if it's worth documenting the peculiarities here, and >> possibly putting an

Re: power of 2 revisited

2021-12-29 Thread Jonathan Gray
On Wed, Dec 29, 2021 at 09:27:34PM -0700, Ted Bullock wrote: > This started out as a direct question to Ingo, but I have readdressed it > to misc@ > > This is around documenting peculiar behaviour around power of 2 math in > the kernel. > > I noticed that in

power of 2 revisited

2021-12-29 Thread Ted Bullock
This started out as a direct question to Ingo, but I have readdressed it to misc@ This is around documenting peculiar behaviour around power of 2 math in the kernel. I noticed that in sys/dev/pci/drm/radeon/radeon_device.c:1137 there is a call to radeon_check_pot_argument, this function isn't