[PATCH 1/8] drm/<ttm-based-drivers>: Don't call drm_mmap

David Herrmann dh.herrmann at gmail.com
Tue Sep 23 14:53:53 PDT 2014


Hi

On Tue, Sep 23, 2014 at 11:38 PM, Jerome Glisse <j.glisse at gmail.com> wrote:
> On Tue, Sep 23, 2014 at 03:46:47PM +0200, Daniel Vetter wrote:
>> Really, the legacy buffer api should be dead, especially for all these
>> newfangled drivers. I suspect this is copypasta from the transitioning
>> days, which probably originated in radeon.
>>
>> Cc: David Airlie <airlied at linux.ie>
>> Cc: Alex Deucher <alexander.deucher at amd.com>
>> Cc: "Christian König" <christian.koenig at amd.com>
>> Cc: David Herrmann <dh.herrmann at gmail.com>
>> Cc: Rashika <rashika.kheria at gmail.com>
>> Cc: Josh Triplett <josh at joshtriplett.org>
>> Cc: Daniel Vetter <daniel.vetter at ffwll.ch>
>> Cc: Fabian Frederick <fabf at skynet.be>
>> Cc: Gerd Hoffmann <kraxel at redhat.com>
>> Cc: Ben Skeggs <bskeggs at redhat.com>
>> Cc: Alexandre Courbot <acourbot at nvidia.com>
>> Cc: Maarten Lankhorst <maarten.lankhorst at canonical.com>
>> Cc: Christian Engelmayer <cengelma at gmx.at>
>> Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>
>
> I would say NAK as i am pretty sure this break radeon UMS code path.
> Of course if we have the go ahead to nuke radeon UMS i am more than
> happy.

radeon_drv.c says:
        driver_old.fops.mmap == drm_mmap;

..so I don't understand why that would break UMS? Do you use KMS mixed
with UMS? radeon_mmap() is only used by radeon_driver_kms_fops, which
is only used by kms_driver. UMS (which I understand as non-KMS in
radeon case) should not be affected by this.

Thanks
David


More information about the dri-devel mailing list