Re: [PATCH 2/2] drm/i915/gem: Fix Virtual Memory mapping boundaries calculation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jonathan,

...

> > +	set_address_limits(area, vma, obj_offset, &start, &end);
> > +
> > +	pfn = (ggtt->gmadr.start + i915_ggtt_offset(vma)) >> PAGE_SHIFT;
> > +	pfn += (start - area->vm_start) >> PAGE_SHIFT;
> > +	pfn += obj_offset - vma->gtt_view.partial.offset;
> 
> I don't know how viable it would be, but maybe we could
> calculate pfn as a part of set_address_limits?

I was a bit afraid of dumping a massive parameter list...

> Just a suggestion, not blocking

... but now that I'm looking at it more carefully, it would be
just two parameters more (&pfn and ggtt->gmadr.start) and would
be cleaner. Will send a v2.

> Reviewed-by: Jonathan Cavitt <Jonathan.cavitt@xxxxxxxxx>
> -Jonathan Cavitt

Thanks!

Andi



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux