intel-qv: upgrade the version to 1.2.0.21

Intel suggests to upgrade the intel-qv driver to the version
1.2.0.21 from 1.2.0.19 after we upgrade the kernel to 6.6.x.

Verification:
* The intel-qv driver can build success.
* Did not do the tests, it looks need docker image to do the test.
  So need the test team help to do the full tests.

Story: 2011056
Task: 50375

Change-Id: Id3773e85e4ae3cf637db34e997c5aaacde0eaa67
Signed-off-by: Jiping Ma <jiping.ma2@windriver.com>
This commit is contained in:
Jiping Ma 2024-06-19 06:26:55 +00:00
parent c751442240
commit c8f9c7798b
4 changed files with 10 additions and 124 deletions

View File

@ -1,3 +1,9 @@
iqvlinux (1.2.0.21-1) unstable; urgency=medium
* Upgrade the version to 1.2.0.21 from 1.2.0.19.
-- Jiping Ma <jiping.ma2@windriver.com> Mon, 11 Jun 2024 10:09:39 +0800
iqvlinux (1.2.0.19-1) unstable; urgency=medium
* Initial release

View File

@ -1,118 +0,0 @@
From 1de2057d668621d1de8a37e0cca7e583b531ae16 Mon Sep 17 00:00:00 2001
From: Jiping Ma <jiping.ma2@windriver.com>
Date: Tue, 5 Mar 2024 08:48:53 +0000
Subject: [PATCH] switch from 'pci_' to 'dma_' API
The wrappers in include/linux/pci-dma-compat.h had gone away.
It has been hand modified to use 'dma_set_mask_and_coherent()' instead of
'pci_set_dma_mask()/pci_set_consistent_dma_mask()' when applicable.
This is less verbose.
expression e1, e2, e3, e4;
@@
- pci_free_consistent(e1, e2, e3, e4)
+ dma_free_coherent(&e1->dev, e2, e3, e4)
@@
expression e1, e2, e3;
@@
- pci_alloc_consistent(e1, e2, e3)
+ dma_alloc_coherent(&e1->dev, e2, e3, GFP_)
Refer link:
https://git.yoctoproject.org/linux-yocto/commit/?h=d56baf6ef
src/linux/driver/linuxdrivermemory_i.c:210:22: error: implicit declaration of\
function pci_alloc_consistent [-Werror=implicit-function-declaration]
210 | Allocation = pci_alloc_consistent(LinuxPciDevice, ByteCount, &Dma);
| ^~~~~~~~~~~~~~~~~~~~
src/linux/driver/linuxdrivermemory_i.c:210:20: warning: assignment to void from\
int makes pointer from integer without a cast [-Wint-conversion]
210 | Allocation = pci_alloc_consistent(LinuxPciDevice, ByteCount, &Dma);
| ^
src/linux/driver/linuxdriverdevice_i.c: In function _NalEnableDevice:
src/linux/driver/linuxdriverdevice_i.c:541:13: error: implicit declaration of\
function pci_set_dma_mask; did you mean ipi_send_mask \
[-Werror=implicit-function-declaration]
541 | if (pci_set_dma_mask(PciDevice, DMA_BIT_MASK(64)) ||
| ^~~~~~~~~~~~~~~~
| ipi_send_mask
src/linux/driver/linuxdrivermemory_i.c:218:13: error: implicit declaration \
of function pci_free_consistent [-Werror=implicit-function-declaration]
218 | pci_free_consistent(LinuxPciDevice, ByteCount, Allocation, Dma);
| ^~~~~~~~~~~~~~~~~~~
src/linux/driver/linuxdriverdevice_i.c:542:13: error: implicit declaration of \
function pci_set_consistent_dma_mask [-Werror=implicit-function-declaration]
542 | pci_set_consistent_dma_mask(PciDevice, DMA_BIT_MASK(64)))
Signed-off-by: Jiping Ma <jiping.ma2@windriver.com>
---
src/linux/driver/linuxdriverdevice_i.c | 10 ++++------
src/linux/driver/linuxdrivermemory_i.c | 6 +++---
2 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/src/linux/driver/linuxdriverdevice_i.c b/src/linux/driver/linuxdriverdevice_i.c
index 06db185..6025649 100644
--- a/src/linux/driver/linuxdriverdevice_i.c
+++ b/src/linux/driver/linuxdriverdevice_i.c
@@ -538,11 +538,9 @@ _NalEnableDevice(
break;
}
- if (pci_set_dma_mask(PciDevice, DMA_BIT_MASK(64)) ||
- pci_set_consistent_dma_mask(PciDevice, DMA_BIT_MASK(64)))
+ if (dma_set_mask_and_coherent(&PciDevice->dev, DMA_BIT_MASK(64)))
{
- if (pci_set_dma_mask(PciDevice, DMA_BIT_MASK(32)) ||
- pci_set_consistent_dma_mask(PciDevice, DMA_BIT_MASK(32)))
+ if (dma_set_mask_and_coherent(&PciDevice->dev, DMA_BIT_MASK(32)))
{
printk(KERN_DEBUG "No usable DMA configuration, aborting\n");
NalStatus = NAL_DMA_NOT_SUPPORTED;
@@ -624,9 +622,9 @@ _NalFillDeviceResource(
break;
}
- if (pci_set_dma_mask(PciDevice, DMA_BIT_MASK(64)))
+ if (dma_set_mask(&PciDevice->dev, DMA_BIT_MASK(64)))
{
- if (pci_set_dma_mask(PciDevice, DMA_BIT_MASK(32)))
+ if (dma_set_mask(&PciDevice->dev, DMA_BIT_MASK(32)))
{
printk(KERN_DEBUG "No usable DMA configuration, aborting\n");
NalStatus = NAL_DMA_NOT_SUPPORTED;
diff --git a/src/linux/driver/linuxdrivermemory_i.c b/src/linux/driver/linuxdrivermemory_i.c
index 93771d0..6393d39 100644
--- a/src/linux/driver/linuxdrivermemory_i.c
+++ b/src/linux/driver/linuxdrivermemory_i.c
@@ -207,7 +207,7 @@ _NalAllocateMemoryNonPagedPci(
break;
}
- Allocation = pci_alloc_consistent(LinuxPciDevice, ByteCount, &Dma);
+ Allocation = dma_alloc_coherent(&LinuxPciDevice->dev, ByteCount, &Dma, GFP_ATOMIC);
if(Allocation == NULL)
{
break;
@@ -215,7 +215,7 @@ _NalAllocateMemoryNonPagedPci(
if(Dma % Alignment != 0)
{
- pci_free_consistent(LinuxPciDevice, ByteCount, Allocation, Dma);
+ dma_free_coherent(&LinuxPciDevice->dev, ByteCount, Allocation, Dma);
Allocation = NULL;
break;
}
@@ -297,7 +297,7 @@ NalFreeMemoryNonPagedPci(
if((Global_DmaPciMemoryTable[i].ReferenceCount != 0) &&
(Global_DmaPciMemoryTable[i].KernelAddress == Address))
{
- pci_free_consistent(LinuxPciDevice,
+ dma_free_coherent(&LinuxPciDevice->dev,
Global_DmaPciMemoryTable[i].Size,
Global_DmaPciMemoryTable[i].KernelAddress,
Global_DmaPciMemoryTable[i].PhysicalAddress);
--
2.43.0

View File

@ -1,2 +1 @@
0001-Do-not-disable-module-signing.patch
0002-switch-from-pci_-to-dma_-API.patch

View File

@ -1,12 +1,11 @@
---
debver: 1.2.0.19-1
debver: 1.2.0.21
debname: iqvlinux
dl_path:
name: iqvlinux.tar.gz
url: "https://mirror.starlingx.windriver.com/mirror/debian/sourceforge.net/\
projects/e1000/files/iqvlinux/1.2.0.19/iqvlinux.tar.gz/download"
md5sum: a1277f6c75c62005d75a8c9676032236
sha256sum: c86c1a394c27474f793641db82803a9784d02ce92de802b99b46a7736757019d
url: "https://sourceforge.net/projects/e1000/files/iqvlinux/1.2.0.21/\
iqvlinux.tar.gz/download"
sha256sum: f0ea34fa3a2cd4fd3023ad3f866703cf7edcc720854082b3e42961ed1d4993f5
dl_hook: dl_hook
revision:
dist: $STX_DIST