lkml.org 
[lkml]   [2021]   [Nov]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC 2/2] drm/msm/gem: Make use of the system cache
    Date
    Instead of writing to WC cmdstream buffers that go all the way to the main
    memory, let's use the system cache to improve the performance.

    Signed-off-by: Georgi Djakov <quic_c_gdjako@quicinc.com>
    ---
    drivers/gpu/drm/msm/msm_gem.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/gpu/drm/msm/msm_gem.c b/drivers/gpu/drm/msm/msm_gem.c
    index 104fdfc14027..921a1c24721e 100644
    --- a/drivers/gpu/drm/msm/msm_gem.c
    +++ b/drivers/gpu/drm/msm/msm_gem.c
    @@ -214,7 +214,7 @@ void msm_gem_put_pages(struct drm_gem_object *obj)
    static pgprot_t msm_gem_pgprot(struct msm_gem_object *msm_obj, pgprot_t prot)
    {
    if (msm_obj->flags & (MSM_BO_WC|MSM_BO_UNCACHED))
    - return pgprot_writecombine(prot);
    + return pgprot_syscached(prot);
    return prot;
    }

    \
     
     \ /
      Last update: 2021-11-17 00:17    [W:3.273 / U:0.084 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site