On Fri, Jun 10, 2016 at 07:09:24PM +0530, Arnav Dawn wrote: > + if (hmb_allocated < (dev->hmb.host_mem_min << 10)) > + goto release_hmb; The spec allows HMMIN be 0, meaning no minimum requirement, so need to account for that.