Skip to contentSkip to conversation

K2/AM3/AM4 Build fixes for 5.10

PATCH Superseded praneeth 2 participants 11 messages Apr 21, 2021 – Apr 22, 2021 2 messages not in the archive

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

praneeth

author
#0 lore raw

cover K2/AM3/AM4 Build fixes for 5.10

From: Praneeth Bajjuri <[email protected]>

This series updates few recipes to latest SRCREV which contains build fixes for 5.10 kernel.

Note: uio-module-drv has not been maintained for a long time, hence the fix is carried in the recipe folder as a *.patch instead of the git repo.

Praneeth Bajjuri (4):
cmem: Update to new version 4.20.00.00
gdbc6x: bump SRCREV for kernel 5.10 build fix
dsptop: bump SRCREV for kernel 5.10 build fix
uio-module-drv: Build fix for linux kernel 5.10

 recipes-bsp/cmem/cmem.inc                     |  6 ++--
 recipes-bsp/dsptop/dsptop.inc                 |  4 +--
 recipes-bsp/uio-module-drv/uio-module-drv.inc |  7 +++-
 ...Replace-ioremap_nocache-with-ioremap.patch | 35 +++++++++++++++++++
 recipes-devtools/gdbc6x/gdbc6x.inc            |  4 +--
 5 files changed, 48 insertions(+), 8 deletions(-)
 create mode 100644 recipes-bsp/uio-module-drv/uio-module-drv/0001-uio-module-drv-Replace-ioremap_nocache-with-ioremap.patch
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH 1/4 cmem: Update to new version 4.20.00.00

From: Praneeth Bajjuri <[email protected]>

The update brings the fix for 5.10.x linux kernel. commit 8aba20e20bf7 ("cmemk: Fix build errors for 5.10+ kernels")

---
 recipes-bsp/cmem/cmem.inc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
recipes-bsp/cmem/cmem.inc +3 -3
index c2719403..385e1084 100644
@@ -4,10 +4,10 @@ LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://include/ti/cmem.h;beginline=1;endline=30;md5=26be509e4bb413905bda8309e338e2b1"
 
 BRANCH = "master"
-# This corresponds to version 4.16.00.00
-SRCREV = "4f970f053b42e8d2a6f1a8cd4b14786196468fd3"
+# This corresponds to version 4.20.00.00
+SRCREV = "b0b57a4e810d27cbb23cb752ef437019f56a5506"
 
-PV = "4.16.00.00+git${SRCPV}"
+PV = "4.20.00.00+git${SRCPV}"
 
 SRC_URI = "git://git.ti.com/ipc/ludev.git;protocol=git;branch=${BRANCH}"
 
Signature · 1 line
2.17.1
Reviewed-by on v1 1/4
#2 lore raw

Re: [dunfell/master PATCH 1/4] cmem: Update to new version 4.20.00.00

Quoted 6 lines · On 4/21/21 3:53 PM, [email protected] wrote:

From: Praneeth Bajjuri <[email protected]>

The update brings the fix for 5.10.x linux kernel. commit 8aba20e20bf7 ("cmemk: Fix build errors for 5.10+ kernels")

regards
Suman

Quoted 23 lines
---
 recipes-bsp/cmem/cmem.inc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
recipes-bsp/cmem/cmem.inc +3 -3
index c2719403..385e1084 100644
@@ -4,10 +4,10 @@ LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://include/ti/cmem.h;beginline=1;endline=30;md5=26be509e4bb413905bda8309e338e2b1"
 
 BRANCH = "master"
-# This corresponds to version 4.16.00.00
-SRCREV = "4f970f053b42e8d2a6f1a8cd4b14786196468fd3"
+# This corresponds to version 4.20.00.00
+SRCREV = "b0b57a4e810d27cbb23cb752ef437019f56a5506"
 
-PV = "4.16.00.00+git${SRCPV}"
+PV = "4.20.00.00+git${SRCPV}"
 
 SRC_URI = "git://git.ti.com/ipc/ludev.git;protocol=git;branch=${BRANCH}"
 

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw

Re: [meta-ti] [dunfell/master PATCH 1/4] cmem: Update to new version 4.20.00.00

Hi Praneeth,

Quoted 9 lines · Suman Anna via lists.yoctoproject.org
Quoted 6 lines · On 4/21/21 3:53 PM, [email protected] wrote:

From: Praneeth Bajjuri <[email protected]>

The update brings the fix for 5.10.x linux kernel. commit 8aba20e20bf7 ("cmemk: Fix build errors for 5.10+ kernels")

Sorry, realized that my patches fixed the issue only for K2 builds originally, and I had a bug that fails the builds for non-K2 platforms. I have since fixed those, so please update use 4.20.00.01 instead.

regards
Suman

Quoted 32 lines

regards
Suman

Quoted 23 lines
---
 recipes-bsp/cmem/cmem.inc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
recipes-bsp/cmem/cmem.inc +3 -3
index c2719403..385e1084 100644
@@ -4,10 +4,10 @@ LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://include/ti/cmem.h;beginline=1;endline=30;md5=26be509e4bb413905bda8309e338e2b1"
 
 BRANCH = "master"
-# This corresponds to version 4.16.00.00
-SRCREV = "4f970f053b42e8d2a6f1a8cd4b14786196468fd3"
+# This corresponds to version 4.20.00.00
+SRCREV = "b0b57a4e810d27cbb23cb752ef437019f56a5506"
 
-PV = "4.16.00.00+git${SRCPV}"
+PV = "4.20.00.00+git${SRCPV}"
 
 SRC_URI = "git://git.ti.com/ipc/ludev.git;protocol=git;branch=${BRANCH}"
 
author
#5 lore raw

Re: [meta-ti] [dunfell/master PATCH 1/4] cmem: Update to new version 4.20.00.00

Quoted 9 lines · Suman Anna

Hi Praneeth,

Quoted 6 lines · Suman Anna via lists.yoctoproject.org
Quoted 5 lines · On 4/21/21 3:53 PM, [email protected] wrote:

From: Praneeth Bajjuri <[email protected]>

The update brings the fix for 5.10.x linux kernel. commit 8aba20e20bf7 ("cmemk: Fix build errors for 5.10+ kernels")

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

Sorry, realized that my patches fixed the issue only for K2 builds originally, and I had a bug that fails the builds for non-K2 platforms. I have since fixed those, so please update use 4.20.00.01 instead.

Thanks for the note, sent a v2.

Quoted 37 lines

regards
Suman

Quoted 32 lines

regards
Suman

Quoted 23 lines
---
  recipes-bsp/cmem/cmem.inc | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
recipes-bsp/cmem/cmem.inc +3 -3
index c2719403..385e1084 100644
@@ -4,10 +4,10 @@ LICENSE = "GPLv2"
  LIC_FILES_CHKSUM = "file://include/ti/cmem.h;beginline=1;endline=30;md5=26be509e4bb413905bda8309e338e2b1"
 
  BRANCH = "master"
-# This corresponds to version 4.16.00.00
-SRCREV = "4f970f053b42e8d2a6f1a8cd4b14786196468fd3"
+# This corresponds to version 4.20.00.00
+SRCREV = "b0b57a4e810d27cbb23cb752ef437019f56a5506"
 
-PV = "4.16.00.00+git${SRCPV}"
+PV = "4.20.00.00+git${SRCPV}"
 
  SRC_URI = "git://git.ti.com/ipc/ludev.git;protocol=git;branch=${BRANCH}"
 
author
#6 lore raw

PATCH 2/4 gdbc6x: bump SRCREV for kernel 5.10 build fix

In reply to praneeth

From: Praneeth Bajjuri <[email protected]>

bump SRCREV to latest to pick build fix for 5.10 kernel.
this update picks
commit dd0c82fb5763 ("Merge pull request #1 in DBG/gdbc6x from for-5.10 to master")

---
 recipes-devtools/gdbc6x/gdbc6x.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-devtools/gdbc6x/gdbc6x.inc +2 -2
index f0d702a0..eeb18fb1 100644
@@ -1,8 +1,8 @@
 # This corresponds to version 1.1.0
-SRCREV = "d1d32c32fa9e40b48fabf5893487ccbd5790499c"
+SRCREV = "dd0c82fb5763a6b32dc6d68e561efb66ab8283d7"
 
 PV = "1.1.0"
-INC_PR = "r6"
+INC_PR = "r7"
 
 SRC_URI = "git://git.ti.com/sdo-emu/gdbc6x.git;protocol=git;branch=${BRANCH}"
 
Signature · 1 line
2.17.1
Reviewed-by on v1 2/4
#7 lore raw

Re: [dunfell/master PATCH 2/4] gdbc6x: bump SRCREV for kernel 5.10 build fix

Quoted 7 lines · On 4/21/21 3:53 PM, [email protected] wrote:

From: Praneeth Bajjuri <[email protected]>

bump SRCREV to latest to pick build fix for 5.10 kernel.
this update picks
commit dd0c82fb5763 ("Merge pull request #1 in DBG/gdbc6x from for-5.10 to master")

regards
Suman

Quoted 20 lines
---
 recipes-devtools/gdbc6x/gdbc6x.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-devtools/gdbc6x/gdbc6x.inc +2 -2
index f0d702a0..eeb18fb1 100644
@@ -1,8 +1,8 @@
 # This corresponds to version 1.1.0
-SRCREV = "d1d32c32fa9e40b48fabf5893487ccbd5790499c"
+SRCREV = "dd0c82fb5763a6b32dc6d68e561efb66ab8283d7"
 
 PV = "1.1.0"
-INC_PR = "r6"
+INC_PR = "r7"
 
 SRC_URI = "git://git.ti.com/sdo-emu/gdbc6x.git;protocol=git;branch=${BRANCH}"
 
author
#8 lore raw

PATCH 3/4 dsptop: bump SRCREV for kernel 5.10 build fix

In reply to praneeth

From: Praneeth Bajjuri <[email protected]>

bump SRCREV to latest to pick build fix for 5.10 kernel.
this update picks
commit 816485e68430 ("Merge pull request #1 in DBG/dsptop from for-5.10 to master")

---
 recipes-bsp/dsptop/dsptop.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-bsp/dsptop/dsptop.inc +2 -2
index 6bc38373..31f775e2 100644
@@ -1,7 +1,7 @@
 # This corresponds to version 1.4.0
-SRCREV = "25e823b04e62af224dce97b90359b7569ce3fbb5"
+SRCREV = "816485e68430bbec643eac9498bfa5303eb2c2e1"
 PV = "1.4.0"
-INC_PR = "r1"
+INC_PR = "r2"
 
 SRC_URI = "git://git.ti.com/sdo-emu/dsptop.git;protocol=git;branch=${BRANCH}"
 
Signature · 1 line
2.17.1
Reviewed-by on v1 3/4
#9 lore raw

Re: [dunfell/master PATCH 3/4] dsptop: bump SRCREV for kernel 5.10 build fix

Quoted 7 lines · On 4/21/21 3:53 PM, [email protected] wrote:

From: Praneeth Bajjuri <[email protected]>

bump SRCREV to latest to pick build fix for 5.10 kernel.
this update picks
commit 816485e68430 ("Merge pull request #1 in DBG/dsptop from for-5.10 to master")

regards
Suman

Quoted 19 lines
---
 recipes-bsp/dsptop/dsptop.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-bsp/dsptop/dsptop.inc +2 -2
index 6bc38373..31f775e2 100644
@@ -1,7 +1,7 @@
 # This corresponds to version 1.4.0
-SRCREV = "25e823b04e62af224dce97b90359b7569ce3fbb5"
+SRCREV = "816485e68430bbec643eac9498bfa5303eb2c2e1"
 PV = "1.4.0"
-INC_PR = "r1"
+INC_PR = "r2"
 
 SRC_URI = "git://git.ti.com/sdo-emu/dsptop.git;protocol=git;branch=${BRANCH}"
 
author
#10 lore raw

PATCH 4/4 uio-module-drv: Build fix for linux kernel 5.10

In reply to praneeth

From: Praneeth Bajjuri <[email protected]>

This update contains build fix for linux kernel 5.10
* uio-module-drv: Replace ioremap_nocache with ioremap

---
 recipes-bsp/uio-module-drv/uio-module-drv.inc |  7 +++-
 ...Replace-ioremap_nocache-with-ioremap.patch | 35 +++++++++++++++++++
 2 files changed, 41 insertions(+), 1 deletion(-)
 create mode 100644 recipes-bsp/uio-module-drv/uio-module-drv/0001-uio-module-drv-Replace-ioremap_nocache-with-ioremap.patch
recipes-bsp/uio-module-drv/uio-module-drv.inc +6 -1
index f483010e..ab1beb9f 100644
@@ -1,3 +1,5 @@
+FILESEXTRAPATHS_prepend:= "${THISDIR}/${PN}:"
+
 LICENSE = "BSD"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2b7c96eb2aed7b0f6f922214dbde9016"
 
@@ -9,7 +11,10 @@ PV = "2.2.1.0+git${SRCPV}"
 
 UIO_MODULE_DRV_GIT_URI = "git://git.ti.com/keystone-linux/uio-module-drv.git"
 UIO_MODULE_DRV_GIT_PROTOCOL = "git"
-SRC_URI = "${UIO_MODULE_DRV_GIT_URI};protocol=${UIO_MODULE_DRV_GIT_PROTOCOL};branch=${BRANCH}"
+SRC_URI = " \
+	${UIO_MODULE_DRV_GIT_URI};protocol=${UIO_MODULE_DRV_GIT_PROTOCOL};branch=${BRANCH} \
+	file://0001-uio-module-drv-Replace-ioremap_nocache-with-ioremap.patch \
+"
 
 SRCREV = "${UIO_MODULE_DRV_SRCREV}"
 
recipes-bsp/uio-module-drv/uio-module-drv/0001-uio-module-drv-Replace-ioremap_nocache-with-ioremap.patch new file +35 -0
new file mode 100644
index 00000000..955ef558
@@ -0,0 +1,35 @@
+From b5c4036dac06817bffd0be21c5fa1b7f75f74e4b Mon Sep 17 00:00:00 2001
+From: Suman Anna <[email protected]>
+Date: Mon, 19 Apr 2021 13:15:51 -0500
+Subject: [PATCH] uio-module-drv: Replace ioremap_nocache with ioremap
+
+The ioremap_nocache is the same as the regular ioremap and its
+definition has been dropped from the Linux kernel v5.6 onwards in
+commit 4bdc0d676a64 ("remove ioremap_nocache and devm_ioremap_nocache")
+[1]. The uio-module-drv module fails to build against these newer
+kernels, so fix it by simply replacing ioremap_nocache with ioremap.
+
+[1]
+https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4bdc0d676a643140bdf17dbf7eafedee3d496a3c
+
+Signed-off-by: Suman Anna <[email protected]>
+---
+ uio_module_drv.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/uio_module_drv.c b/uio_module_drv.c
+index 5a67dd199e21..7cc6005d1f05 100644
+--- a/uio_module_drv.c
++++ b/uio_module_drv.c
+@@ -240,7 +240,7 @@ static ssize_t  uio_module_drv_transfer(struct file *file, char __user *buf,
+ 		return -EINVAL;
+ 	}
+ 
+-	virt_addr_p = ioremap_nocache(phys_addr, count);
++	virt_addr_p = ioremap(phys_addr, count);
+ 	if (!virt_addr_p) {
+ 		dev_err(uio_module_drv->dev, "Mapping of virtual memory failed\n");
+ 		return(-ENOMEM);
+-- 
+2.30.1
+
Signature · 1 line
2.17.1

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#12 lore raw

Re: [meta-ti] [dunfell/master PATCH 4/4] uio-module-drv: Build fix for linux kernel 5.10

Quoted 23 lines · praneeth via lists.yoctoproject.org

From: Praneeth Bajjuri <[email protected]>

This update contains build fix for linux kernel 5.10
* uio-module-drv: Replace ioremap_nocache with ioremap

---
  recipes-bsp/uio-module-drv/uio-module-drv.inc |  7 +++-
  ...Replace-ioremap_nocache-with-ioremap.patch | 35 +++++++++++++++++++
  2 files changed, 41 insertions(+), 1 deletion(-)

create mode 100644 recipes-bsp/uio-module-drv/uio-module-drv/0001-uio-module-drv-Replace-ioremap_nocache-with-ioremap.patch

recipes-bsp/uio-module-drv/uio-module-drv.inc +2 -0
index f483010e..ab1beb9f 100644
@@ -1,3 +1,5 @@
+FILESEXTRAPATHS_prepend:= "${THISDIR}/${PN}:"
+
  LICENSE = "BSD"
  LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2b7c96eb2aed7b0f6f922214dbde9016"
 

recipes-bsp/uio-module-drv/uio-module-drv.inc PV = "2.2.1.0+git${SRCPV}" · line 17

Quoted 8 lines
recipes-bsp/uio-module-drv/uio-module-drv.inc +4 -1
@@ -9,7 +11,10 @@ PV = "2.2.1.0+git${SRCPV}"
 
  UIO_MODULE_DRV_GIT_URI = "git://git.ti.com/keystone-linux/uio-module-drv.git"
  UIO_MODULE_DRV_GIT_PROTOCOL = "git"
-SRC_URI = "${UIO_MODULE_DRV_GIT_URI};protocol=${UIO_MODULE_DRV_GIT_PROTOCOL};branch=${BRANCH}"
+SRC_URI = " \
+	${UIO_MODULE_DRV_GIT_URI};protocol=${UIO_MODULE_DRV_GIT_PROTOCOL};branch=${BRANCH} \
+	file://0001-uio-module-drv-Replace-ioremap_nocache-with-ioremap.patch \
+"

uio-module-drv.inc doesnt look like a right place. Will send v2 only for this patch.

Quoted 49 lines
recipes-bsp/uio-module-drv/uio-module-drv.inc +0 -0
  SRCREV = "${UIO_MODULE_DRV_SRCREV}"
 
recipes-bsp/uio-module-drv/uio-module-drv/0001-uio-module-drv-Replace-ioremap_nocache-with-ioremap.patch new file +35 -0
new file mode 100644
index 00000000..955ef558
@@ -0,0 +1,35 @@
+From b5c4036dac06817bffd0be21c5fa1b7f75f74e4b Mon Sep 17 00:00:00 2001
+From: Suman Anna <[email protected]>
+Date: Mon, 19 Apr 2021 13:15:51 -0500
+Subject: [PATCH] uio-module-drv: Replace ioremap_nocache with ioremap
+
+The ioremap_nocache is the same as the regular ioremap and its
+definition has been dropped from the Linux kernel v5.6 onwards in
+commit 4bdc0d676a64 ("remove ioremap_nocache and devm_ioremap_nocache")
+[1]. The uio-module-drv module fails to build against these newer
+kernels, so fix it by simply replacing ioremap_nocache with ioremap.
+
+[1]
+https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4bdc0d676a643140bdf17dbf7eafedee3d496a3c
+
+Signed-off-by: Suman Anna <[email protected]>
+---
+ uio_module_drv.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/uio_module_drv.c b/uio_module_drv.c
+index 5a67dd199e21..7cc6005d1f05 100644
+--- a/uio_module_drv.c
++++ b/uio_module_drv.c
+@@ -240,7 +240,7 @@ static ssize_t  uio_module_drv_transfer(struct file *file, char __user *buf,
+ 		return -EINVAL;
+ 	}
+
+-	virt_addr_p = ioremap_nocache(phys_addr, count);
++	virt_addr_p = ioremap(phys_addr, count);
+ 	if (!virt_addr_p) {
+ 		dev_err(uio_module_drv->dev, "Mapping of virtual memory failed\n");
+ 		return(-ENOMEM);
+--
+2.30.1
+