Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Linux kernel 5.7

  1. #11
    Join Date
    Jun 2006
    Beans
    92

    Smile Re: Linux kernel 5.7

    Kernel 5.7 rc5 is working well so on Kubuntu with the Ubuntu Gnome just added as an alternate desktop

  2. #12
    Join Date
    Jun 2006
    Beans
    92

    Re: Linux kernel 5.7

    Upgrade to kernel .7.0-050700rc6-generic comopletely without incident. I am interested in whether the system freezing overnight when using Gnome desktop is improved.

  3. #13
    Join Date
    Oct 2008
    Location
    ExodusHair<Čubura
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Linux kernel 5.7

    https://kernel.ubuntu.com/~kernel-ppa/mainline/
    (994)drm-next:
    Code:
      CC [M]  drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.o
    /home/kernel/COD/linux/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c: In function 'amdgpu_amdkfd_gpuvm_free_memory_of_gpu':
    /home/kernel/COD/linux/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:1357:2: error: implicit declaration of function 'drm_gem_object_put_unlocked'; did you mean 'drm_gem_object_put_locked'? [-Werror=implicit-function-declaration]
     1357 |  drm_gem_object_put_unlocked(&mem->bo->tbo.base);
          |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
          |  drm_gem_object_put_locked
    cc1: some warnings being treated as errors
    make[6]: *** [/home/kernel/COD/linux/scripts/Makefile.build:267: drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.o] Error 1
    make[5]: *** [/home/kernel/COD/linux/scripts/Makefile.build:488: drivers/gpu/drm/amd/amdgpu] Error 2
    make[5]: *** Waiting for unfinished jobs....
      GEN     kernel/kheaders_data.tar.xz
    make[4]: *** [/home/kernel/COD/linux/scripts/Makefile.build:488: drivers/gpu/drm] Error 2
    make[3]: *** [/home/kernel/COD/linux/scripts/Makefile.build:488: drivers/gpu] Error 2
    make[2]: *** [/home/kernel/COD/linux/Makefile:1729: drivers] Error 2
    make[2]: *** Waiting for unfinished jobs....
      CC [M]  kernel/kheaders.o
    make[2]: Leaving directory '/home/kernel/COD/linux/debian/build/build-generic'
    make[1]: *** [Makefile:180: sub-make] Error 2
    make[1]: Leaving directory '/home/kernel/COD/linux'
    make: *** [debian/rules.d/2-binary-arch.mk:50: /home/kernel/COD/linux/debian/stamps/stamp-build-generic] Error 2
    For few days it did not come even here...
    (999)daily is OK.
    Ignota nulla curatio morbi.

  4. #14
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    2,829
    Distro
    Ubuntu Development Release

    Re: Linux kernel 5.7

    Quote Originally Posted by zika View Post
    https://kernel.ubuntu.com/~kernel-ppa/mainline/
    (994)drm-next:
    For few days it did not come even here...
    (999)daily is OK.
    Related to this commit:

    Code:
    doug@s15:~/temp-k-git/linux$ git show 39b3128d7ffd
    commit 39b3128d7ffd44e400e581e6f49e88cb42bef9a1
    Author: Felix Kuehling <Felix.Kuehling@amd.com>
    Date:   Tue May 5 14:02:43 2020 -0400
    
        drm/amdgpu: Use GEM obj reference for KFD BOs
    
        Releasing the AMDGPU BO ref directly leads to problems when BOs were
        exported as DMA bufs. Releasing the GEM reference makes sure that the
        AMDGPU/TTM BO is not freed too early.
    
        Also take a GEM reference when importing BOs from DMABufs to keep
        references to imported BOs balances properly.
    
        Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
        Tested-by: Alex Sierra <alex.sierra@amd.com>
        Acked-by: Christian König <christian.koenig@amd.com>
        Reviewed-by: Alex Sierra <alex.sierra@amd.com>
        Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    
    diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
    index 9dff792c9290..6a5b91d23fd9 100644
    --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
    +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
    @@ -1343,7 +1343,7 @@ int amdgpu_amdkfd_gpuvm_free_memory_of_gpu(
            }
    
            /* Free the BO*/
    -       amdgpu_bo_unref(&mem->bo);
    +       drm_gem_object_put_unlocked(&mem->bo->tbo.base);
            mutex_destroy(&mem->lock);
            kfree(mem);
    
    @@ -1688,7 +1688,8 @@ int amdgpu_amdkfd_gpuvm_import_dmabuf(struct kgd_dev *kgd,
                    | KFD_IOC_ALLOC_MEM_FLAGS_WRITABLE
                    | KFD_IOC_ALLOC_MEM_FLAGS_EXECUTABLE;
    
    -       (*mem)->bo = amdgpu_bo_ref(bo);
    +       drm_gem_object_get(&bo->tbo.base);
    +       (*mem)->bo = bo;
            (*mem)->va = va;
            (*mem)->domain = (bo->preferred_domains & AMDGPU_GEM_DOMAIN_VRAM) ?
                    AMDGPU_GEM_DOMAIN_VRAM : AMDGPU_GEM_DOMAIN_GTT;
    And I observe that commit being picked up by downstream maintainers.
    I could not find if this was a fix for something else or something was done to fix what you observed in the 994 build, but I did observe some amdgpu related mode changes/deletions in my git pull. I am not knowledgeable enough with git go further, short of trying a compile right at commit 39b3128d7ffd (which I am not going to do, even though I am curious, I just don't have the time).
    Last edited by Doug S; May 24th, 2020 at 03:26 PM.
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

  5. #15
    Join Date
    Oct 2008
    Location
    Rezzoaglio (GE) Italy
    Beans
    336
    Distro
    Ubuntu Development Release

    Re: Linux kernel 5.7


Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •