> -----Original Message----- > From: Mittal, Anuj <[email protected]> > Sent: Saturday, May 30, 2020 00:56 > To: Liu, Yongxin <[email protected]>; meta- > [email protected] > Subject: Re: [meta-intel][meta-intel-qat][PATCH] qat17: Change PCI/AER > interfaces to be compatible with kernel v5.7 > > On Fri, 2020-05-29 at 18:06 +0800, Yongxin Liu wrote: > > Some PCI/AER interfaces were renamed in kernel commit 894020fdd88c > > ("PCI/AER: Rationalize error status register clearing"). Add > > qat17_4.7.0-00006-Change-PCI-AER-interface-to-accommodate- > > kernel.patch > > to make QAT buildable with kernel v5.7. > > > > From: > > https://github.com/torvalds/linux/commit/62b36c3ea664b34004b9d29bf541b6c6c > e30e33c#diff-c7dd993f2be977439a99647ac9b9a37d > > it looks like you can simply remove the call for latest kernels?
Thanks for your suggestion. I will send V2. Yongxin > > Thanks, > > Anuj > > > Signed-off-by: Yongxin Liu <[email protected]> > > --- > > ...e-PCI-AER-interface-to-accommodate-kernel.patch | 36 > > ++++++++++++++++++++++ > > 1 file changed, 36 insertions(+) > > create mode 100644 recipes-extended/qat/files/qat17_4.7.0-00006- > > Change-PCI-AER-interface-to-accommodate-kernel.patch > > > > diff --git a/recipes-extended/qat/files/qat17_4.7.0-00006-Change-PCI- > > AER-interface-to-accommodate-kernel.patch b/recipes- > > extended/qat/files/qat17_4.7.0-00006-Change-PCI-AER-interface-to- > > accommodate-kernel.patch > > new file mode 100644 > > index 0000000..a6f7fff > > --- /dev/null > > +++ b/recipes-extended/qat/files/qat17_4.7.0-00006-Change-PCI-AER- > > interface-to-accommodate-kernel.patch > > @@ -0,0 +1,36 @@ > > +From 10bfba9ac546cee32a7779de3f3845bdc82b4961 Mon Sep 17 00:00:00 > > 2001 > > +From: Yongxin Liu <[email protected]> > > +Date: Fri, 29 May 2020 16:31:42 +0800 > > +Subject: [PATCH] qat17: Change PCI/AER interface to accommodate > > kernel v5.7 > > + > > +In kernel v5.7-rc1, commit 894020fdd88c ("PCI/AER: Rationalize error > > status > > +register clearing") changes pci_cleanup_aer_uncorrect_error_status() > > to > > +pci_aer_clear_nonfatal_status(). > > + > > +Upstream-Status: Inappropriate [Code released in tarball form only] > > + > > +Signed-off-by: Yongxin Liu <[email protected]> > > +--- > > + quickassist/qat/drivers/crypto/qat/qat_common/adf_aer.c | 5 +++++ > > + 1 file changed, 5 insertions(+) > > + > > +diff --git a/quickassist/qat/drivers/crypto/qat/qat_common/adf_aer.c > > b/quickassist/qat/drivers/crypto/qat/qat_common/adf_aer.c > > +index 5e98b70..bd99df0 100644 > > +--- a/quickassist/qat/drivers/crypto/qat/qat_common/adf_aer.c > > ++++ b/quickassist/qat/drivers/crypto/qat/qat_common/adf_aer.c > > +@@ -281,7 +281,12 @@ static pci_ers_result_t adf_slot_reset(struct > > pci_dev *pdev) > > + pr_err("QAT: Can't find acceleration device\n"); > > + return PCI_ERS_RESULT_DISCONNECT; > > + } > > ++ > > ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,7,0) > > + pci_cleanup_aer_uncorrect_error_status(pdev); > > ++#else > > ++ pci_aer_clear_nonfatal_status(pdev); > > ++#endif > > + if (adf_dev_aer_schedule_reset(accel_dev, ADF_DEV_RESET_SYNC)) > > + return PCI_ERS_RESULT_DISCONNECT; > > + > > +-- > > +2.14.4 > > + > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#6574): https://lists.yoctoproject.org/g/meta-intel/message/6574 Mute This Topic: https://lists.yoctoproject.org/mt/74540528/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
