Re: [Intel-gfx] [PATCH RFC 3/3] drm/i915/display: Implement fb_mmap callback function

2023-03-20 Thread Andrzej Hajda
On 20.03.2023 11:09, Nirmoy Das wrote: If stolen memory allocation fails for fbdev, the driver will fallback to system memory. Calculation of smem_start is wrong for such framebuffer objs if the platform comes with no gmadr or no aperture. Solve this by adding fb_mmap callback which will use GTT

[PATCH RFC 3/3] drm/i915/display: Implement fb_mmap callback function

2023-03-20 Thread Nirmoy Das
If stolen memory allocation fails for fbdev, the driver will fallback to system memory. Calculation of smem_start is wrong for such framebuffer objs if the platform comes with no gmadr or no aperture. Solve this by adding fb_mmap callback which will use GTT if aperture is available otherwise will u

Re: [PATCH RFC 3/3] drm/i915/display: Implement fb_mmap callback function

2023-03-07 Thread Das, Nirmoy
Hi Ville, On 3/6/2023 3:32 PM, Ville Syrjälä wrote: On Mon, Mar 06, 2023 at 11:28:50AM +0100, Nirmoy Das wrote: If stolen memory allocation fails for fbdev, the driver will fallback to system memory. Calculation of smem_start is wrong for such framebuffer objs if the platform comes with no gmad

Re: [PATCH RFC 3/3] drm/i915/display: Implement fb_mmap callback function

2023-03-06 Thread Ville Syrjälä
On Mon, Mar 06, 2023 at 11:28:50AM +0100, Nirmoy Das wrote: > If stolen memory allocation fails for fbdev, the driver will > fallback to system memory. Calculation of smem_start is wrong > for such framebuffer objs if the platform comes with no gmadr or > no aperture. Solve this by adding fb_mmap c

[PATCH RFC 3/3] drm/i915/display: Implement fb_mmap callback function

2023-03-06 Thread Nirmoy Das
If stolen memory allocation fails for fbdev, the driver will fallback to system memory. Calculation of smem_start is wrong for such framebuffer objs if the platform comes with no gmadr or no aperture. Solve this by adding fb_mmap callback which also gives driver more control. Signed-off-by: Nirmoy