diff --git a/packages/linux/package.mk b/packages/linux/package.mk index 05bde8f3c8..2c62f0bfb6 100644 --- a/packages/linux/package.mk +++ b/packages/linux/package.mk @@ -37,9 +37,9 @@ case "$LINUX" in PKG_SOURCE_NAME="linux-$LINUX-$PKG_VERSION.tar.gz" ;; *) - PKG_VERSION="5.4-rc8" - PKG_SHA256="b310b110f06f297a617fedbd1c0bf2cfc07825c6ddbadb3aba7d8177184a0d4d" - PKG_URL="https://git.kernel.org/torvalds/t/$PKG_NAME-$PKG_VERSION.tar.gz" + PKG_VERSION="5.4" + PKG_SHA256="bf338980b1670bca287f9994b7441c2361907635879169c64ae78364efc5f491" + PKG_URL="https://www.kernel.org/pub/linux/kernel/v5.x/$PKG_NAME-$PKG_VERSION.tar.xz" PKG_PATCH_DIRS="default" ;; esac diff --git a/packages/linux/patches/default/linux-999-drm-i915-fbdev-restore-pysical-addesses-for-fb_mmap.patch b/packages/linux/patches/default/linux-999-drm-i915-fbdev-restore-pysical-addesses-for-fb_mmap.patch deleted file mode 100644 index 586f26c3cb..0000000000 --- a/packages/linux/patches/default/linux-999-drm-i915-fbdev-restore-pysical-addesses-for-fb_mmap.patch +++ /dev/null @@ -1,57 +0,0 @@ -From patchwork Wed Nov 13 18:06:33 2019 -Content-Type: text/plain; charset="utf-8" -MIME-Version: 1.0 -Content-Transfer-Encoding: 8bit -Subject: drm/i915/fbdev: Restore physical addresses for fb_mmap() -From: Chris Wilson -X-Patchwork-Id: 340663 -Message-Id: <20191113180633.3947-1-chris@chris-wilson.co.uk> -To: intel-gfx@lists.freedesktop.org -Cc: Daniel Vetter -Date: Wed, 13 Nov 2019 18:06:33 +0000 - -fbdev uses the physical address of our framebuffer for its fb_mmap() -routine. While we need to adapt this address for the new io BAR, we have -to fix v5.4 first! The simplest fix is to restore the smem back to v5.4 -and we will then probably have to implement our fbops->fb_mmap() call -back to handle local memory. - -Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=112256 -Fixes: 5f889b9a61dd ("drm/i915: Disregard drm_mode_config.fb_base") -Signed-off-by: Chris Wilson -Cc: Daniel Vetter -Cc: Maarten Lankhorst -Reported-by: Neil MacLeod -Tested-by: Neil MacLeod -Reviewed-by: Ville Syrjälä ---- - drivers/gpu/drm/i915/display/intel_fbdev.c | 9 +++++---- - 1 file changed, 5 insertions(+), 4 deletions(-) - -diff --git a/drivers/gpu/drm/i915/display/intel_fbdev.c b/drivers/gpu/drm/i915/display/intel_fbdev.c -index 3d1061470e76..48c960ca12fb 100644 ---- a/drivers/gpu/drm/i915/display/intel_fbdev.c -+++ b/drivers/gpu/drm/i915/display/intel_fbdev.c -@@ -234,6 +234,11 @@ static int intelfb_create(struct drm_fb_helper *helper, - info->apertures->ranges[0].base = ggtt->gmadr.start; - info->apertures->ranges[0].size = ggtt->mappable_end; - -+ /* Our framebuffer is the entirety of fbdev's system memory */ -+ info->fix.smem_start = -+ (unsigned long)(ggtt->gmadr.start + vma->node.start); -+ info->fix.smem_len = vma->node.size; -+ - vaddr = i915_vma_pin_iomap(vma); - if (IS_ERR(vaddr)) { - DRM_ERROR("Failed to remap framebuffer into virtual memory\n"); -@@ -243,10 +248,6 @@ static int intelfb_create(struct drm_fb_helper *helper, - info->screen_base = vaddr; - info->screen_size = vma->node.size; - -- /* Our framebuffer is the entirety of fbdev's system memory */ -- info->fix.smem_start = (unsigned long)info->screen_base; -- info->fix.smem_len = info->screen_size; -- - drm_fb_helper_fill_info(info, &ifbdev->helper, sizes); - - /* If the object is shmemfs backed, it will have given us zeroed pages.