accordance
with the controller standard.
Signed-off-by: Longfang Liu
---
drivers/usb/host/ehci-pci.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c
index 3c3820a..5dc6821 100644
--- a/drivers/usb/host/ehci-pci.c
+++ b/drivers/usb/host
cause the EHCI interrupt signal to
not be turned off after reboot. this interrupt that is not closed
will cause an exception to the device sharing the interrupt.
Therefore, the EHCI controller of kunpeng920 needs to be added
to the whitelist without SBRN register.
Signed-off-by: Longfan
.
Signed-off-by: Longfang Liu
---
drivers/usb/host/ehci-pci.c | 27 +++
1 file changed, 23 insertions(+), 4 deletions(-)
diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c
index 3c3820a..6a30afa 100644
--- a/drivers/usb/host/ehci-pci.c
+++ b/drivers/usb
generation Kunpeng930, we will define
this SBRN register in accordance with the controller standard.
Signed-off-by: Longfang Liu
---
drivers/usb/host/ehci-pci.c | 30 ++
1 file changed, 26 insertions(+), 4 deletions(-)
diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb
(1) Add a whitelist for EHCI devices without SBRN registers.
(2) Add Kunpeng920's EHCI device to the whitelist.
Longfang Liu (2):
USB:ehci:Add a whitelist for EHCI controllers
USB:ehci:fix Kunpeng920 ehci hardware problem
drivers/usb/host/ehci-pci.c | 29 +--
.
Signed-off-by: Longfang Liu
---
drivers/usb/host/ehci-pci.c | 27 +++
1 file changed, 23 insertions(+), 4 deletions(-)
diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c
index 3c3820a..6a30afa 100644
--- a/drivers/usb/host/ehci-pci.c
+++ b/drivers/usb
cause the EHCI interrupt signal to
not be turned off after reboot. this interrupt that is not closed
will cause an exception to the device sharing the interrupt.
Therefore, the EHCI controller of kunpeng920 needs to be added
to the whitelist without SBRN register.
Signed-off-by: Longfan
(1) Add a whitelist for EHCI devices without SBRN registers.
(2) Add Kunpeng920's EHCI device to the whitelist.
Longfang Liu (2):
USB:ehci:Add a whitelist for EHCI controllers
USB:ehci:fix Kunpeng920 ehci hardware problem
drivers/usb/host/ehci-pci.c | 29 +--
(1) Add a whitelist for EHCI devices without SBRN registers.
(2) Add Kunpeng920's EHCI device to the whitelist.
Changes in v2:
- Fix some code style issues.
- Update function name.
Longfang Liu (2):
USB:ehci:Add a whitelist for EHCI controllers
USB:ehci:fix Kunpeng920
.
Signed-off-by: Longfang Liu
---
drivers/usb/host/ehci-pci.c | 28
1 file changed, 24 insertions(+), 4 deletions(-)
diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c
index 3c3820a..534e906 100644
--- a/drivers/usb/host/ehci-pci.c
+++ b/drivers/usb
cause the EHCI interrupt signal to
not be turned off after reboot. this interrupt that is not closed
will cause an exception to the device sharing the interrupt.
Therefore, the EHCI controller of kunpeng920 needs to be added
to the whitelist without SBRN register.
Signed-off-by: Longfan
(1) Add a whitelist for EHCI devices without SBRN registers.
(2) Add Kunpeng920's EHCI device to the whitelist.
Changes in v3:
- Fix some code style issues.
- Update struct name.
Changes in v2:
- Fix some code style issues.
- Update function name.
Longfang L
cause the EHCI interrupt signal to
not be turned off after reboot. this interrupt that is not closed
will cause an exception to the device sharing the interrupt.
Therefore, the EHCI controller of kunpeng920 needs to be added
to the whitelist without SBRN register.
Signed-off-by: Longfan
.
Signed-off-by: Longfang Liu
---
drivers/usb/host/ehci-pci.c | 27 +++
1 file changed, 23 insertions(+), 4 deletions(-)
diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c
index 3c3820a..f7f3156 100644
--- a/drivers/usb/host/ehci-pci.c
+++ b/drivers/usb
lution is to specify freeze interface in this mode to
perform normal suspend_common() operations, and call ohci_suspend()
after check_root_hub_suspend() is executed through the suspend_common()
operation.
Signed-off-by: Longfang Liu
---
Changes in V2:
- Modify comment and patch v
cause the EHCI interrupt signal to
not be turned off after reboot. this interrupt that is not closed
will cause an exception to the device sharing the interrupt.
Therefore, the EHCI controller of Kunpeng920 needs to skip
the read operation of the SBRN register.
Signed-off-by: Longfang Liu
---
Ch
cause the EHCI interrupt signal to
not be turned off after reboot. this interrupt that is not closed
will cause an exception to the device sharing the interrupt.
Therefore, the EHCI controller of Kunpeng920 needs to skip
the read operation of the SBRN register.
Signed-off-by: Longfang Liu
---
Ch
cleanup static check errors for SEC
Signed-off-by: Longfang Liu
---
drivers/crypto/hisilicon/sec2/sec_main.c | 131 ++-
1 file changed, 76 insertions(+), 55 deletions(-)
diff --git a/drivers/crypto/hisilicon/sec2/sec_main.c
b/drivers/crypto/hisilicon/sec2
follows, an error will occur.
Is there any other modification method?
Signed-off-by: Longfang Liu
---
drivers/usb/host/xhci-pci.c | 15 ++-
1 file changed, 2 insertions(+), 13 deletions(-)
diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
index ef513c2..7296aad
: Longfang Liu
---
Changes in v2:
- updated cleared registers
drivers/usb/host/ehci-hub.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/usb/host/ehci-hub.c b/drivers/usb/host/ehci-hub.c
index ce0eaf7..a99c1ac 100644
--- a/drivers/usb/host/ehci-hub.c
+++ b/drivers/usb/host/ehci-hub.c
: Longfang Liu
Acked-by: Alan Stern
---
Changes in v2:
- updated cleared registers
drivers/usb/host/ehci-hub.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/usb/host/ehci-hub.c b/drivers/usb/host/ehci-hub.c
index ce0eaf7..6dfbba1 100644
--- a/drivers/usb/host/ehci-hub.c
+++ b/drivers
information.
Signed-off-by: Longfang Liu
---
drivers/usb/core/hub.c | 10 --
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index b1e14be..70294ad 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -1409,13 +1409,11
1. Fix a problems.
2. Fix some coding style.
Changes v2 -> v3:
- Delete shash test error patch.
Changes v1 -> v2:
- Modify the way to fix shash test error.
Longfang Liu (2):
crypto: hisilicon/sec - fixes some log printing style
crypto: hisilicon/sec - fixes some driver coding
cleanup static check errors for SEC
Signed-off-by: Longfang Liu
---
drivers/crypto/hisilicon/sec2/sec_main.c | 131 ++-
1 file changed, 76 insertions(+), 55 deletions(-)
diff --git a/drivers/crypto/hisilicon/sec2/sec_main.c
b/drivers/crypto/hisilicon/sec2
1. Fix a problem of error log printing
2. Modify error log printing style
Signed-off-by: Longfang Liu
---
drivers/crypto/hisilicon/sec2/sec.h| 5 +-
drivers/crypto/hisilicon/sec2/sec_crypto.c | 82 +++---
drivers/crypto/hisilicon/sec2/sec_crypto.h | 2 -
3
registered
algorithms cannot be used.
Therefore, when PF or VF is initialized, if the number of qp queues
is not enough to create a ctx, the kernel mode cannot be used,
and there is no need to register the kernel mode algorithms.
Signed-off-by: Longfang Liu
---
Changes in V2:
- Add algorithms
call ohci_suspend() directly during
the sleep process of S4. Do you have any suggestions for this
modification?
Signed-off-by: Longfang Liu
---
drivers/usb/host/ohci-hub.c | 13 -
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/host/ohci-hub.c b/drivers/usb
registered
algorithms cannot be used.
Therefore, when PF or VF is initialized, if the number of qp queues
is not enough to create a ctx, the kernel mode cannot be used,
and there is no need to register the kernel mode algorithms.
Signed-off-by: Longfang Liu
---
drivers/crypto/hisilicon/sec2/sec_main.c
The input data of the ECB (AES) algorithm needs to be aligned
with 16 bytes, and the input data of the XTS (AES) algorithm is
at least 16 bytes. Otherwise the SEC hardware will go wrong.
Signed-off-by: Longfang Liu
---
drivers/crypto/hisilicon/sec2/sec_crypto.c | 37
registered
algorithms cannot be used.
Therefore, when PF or VF is initialized, if the number of qp queues
is not enough to create a ctx, the kernel mode cannot be used,
and there is no need to register the kernel mode algorithms.
Signed-off-by: Longfang Liu
---
drivers/crypto/hisilicon/sec2/sec_main.c
The input data of the ECB (AES) algorithm needs to be aligned
with 16 bytes, and the input data of the XTS (AES) algorithm is
at least 16 bytes. Otherwise the SEC hardware will go wrong.
Signed-off-by: Longfang Liu
---
drivers/crypto/hisilicon/sec2/sec_crypto.c | 37
flags when the hub is initialized.
Signed-off-by: Longfang Liu
---
drivers/usb/core/hub.c | 6 ++
drivers/usb/host/xhci-pci.c | 4
drivers/usb/host/xhci.c | 5 +
drivers/usb/host/xhci.h | 1 +
include/linux/usb/hcd.h | 1 +
5 files changed, 17 insertions(+)
diff --
the compatibility check is passed, it will enter the Stop-and-copy
stage. At this time, all the live migration data will be copied, and then
saved to the VF device of the destination, and then the VF device of the
destination will be started and the VM of the source will be exited.
Longfang Liu (3
Register the live migration driver of the accelerator module to vfio
Signed-off-by: Longfang Liu
Reviewed-by: Zengtao
---
drivers/vfio/pci/vfio_pci.c | 11 +++
drivers/vfio/pci/vfio_pci_private.h | 10 ++
2 files changed, 21 insertions(+)
diff --git a/drivers/vfio/pci
Add debugfs debugging interface to live migration driver
Signed-off-by: Longfang Liu
Reviewed-by: Zengtao
---
drivers/vfio/pci/hisilicon/acc_vf_migration.c | 193 ++
drivers/vfio/pci/hisilicon/acc_vf_migration.h | 2 +
2 files changed, 195 insertions(+)
diff --git a
the migration data.
(3).Operation and data processing of accelerator hardware devices
Signed-off-by: Longfang Liu
Reviewed-by: Zengtao
---
drivers/vfio/pci/Kconfig |9 +
drivers/vfio/pci/Makefile |3 +-
drivers/vfio/pci/hisilicon
Register the live migration driver of the accelerator module to vfio
Signed-off-by: Longfang Liu
---
drivers/vfio/pci/vfio_pci.c | 11 +++
drivers/vfio/pci/vfio_pci_private.h | 10 ++
2 files changed, 21 insertions(+)
diff --git a/drivers/vfio/pci/vfio_pci.c b/drivers
Add debugfs debugging interface to live migration driver
Signed-off-by: Longfang Liu
---
drivers/vfio/pci/hisilicon/acc_vf_migration.c | 193 ++
drivers/vfio/pci/hisilicon/acc_vf_migration.h | 2 +
2 files changed, 195 insertions(+)
diff --git a/drivers/vfio/pci
the migration data.
(3).Operation and data processing of accelerator hardware devices
Signed-off-by: Longfang Liu
---
drivers/vfio/pci/Kconfig |9 +
drivers/vfio/pci/Makefile |3 +-
drivers/vfio/pci/hisilicon/acc_vf_migration.c | 1164
the compatibility check is passed, it will enter the Stop-and-copy
stage. At this time, all the live migration data will be copied, and then
saved to the VF device of the destination, and then the VF device of the
destination will be started and the VM of the source will be exited.
Longfang Liu (3
Register the live migration driver of the accelerator module to vfio
Signed-off-by: Longfang Liu
---
drivers/vfio/pci/vfio_pci.c | 11 +++
drivers/vfio/pci/vfio_pci_private.h | 9 +
2 files changed, 20 insertions(+)
diff --git a/drivers/vfio/pci/vfio_pci.c b/drivers
the compatibility check is passed, it will enter the Stop-and-copy
stage. At this time, all the live migration data will be copied, and then
saved to the VF device of the destination, and then the VF device of the
destination will be started and the VM of the source will be exited.
Longfang Liu (3
Add debugfs debugging interface to live migration driver
Signed-off-by: Longfang Liu
---
drivers/vfio/pci/hisilicon/acc_vf_migration.c | 193 ++
drivers/vfio/pci/hisilicon/acc_vf_migration.h | 2 +
2 files changed, 195 insertions(+)
diff --git a/drivers/vfio/pci
the migration data.
(3).Operation and data processing of accelerator hardware devices
Signed-off-by: Longfang Liu
---
drivers/vfio/pci/Kconfig |8 +
drivers/vfio/pci/Makefile |1 +
drivers/vfio/pci/hisilicon/acc_vf_migration.c | 1144
S4 mode for a long time that this problem no longer occurs.
Signed-off-by: Longfang Liu
---
drivers/usb/core/hcd-pci.c | 9 +++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/core/hcd-pci.c b/drivers/usb/core/hcd-pci.c
index 1547aa6..78a56cd 100644
--- a/drivers/
S4 mode for a long time that this problem no longer occurs.
Signed-off-by: Longfang Liu
---
drivers/usb/core/hcd-pci.c | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/core/hcd-pci.c b/drivers/usb/core/hcd-pci.c
index 1547aa6..c5844a3 100644
--- a/drivers/
Add new AEAD algorithms to SEC:
CCM(AES), GCM(AES), CCM(SM4), GCM(SM4).
Signed-off-by: Longfang Liu
---
drivers/crypto/hisilicon/sec2/sec.h| 4 +
drivers/crypto/hisilicon/sec2/sec_crypto.c | 382 -
drivers/crypto/hisilicon/sec2/sec_crypto.h | 5 +
3 files
Add testing cases for new algorithms such as
'XTS(SM4)', 'CCM(SM4)' and 'GCM(SM4)' to 'Crypto testmgr'.
Except for CCM(AES) exiting with unexpected success,
other algorithms have successfully passed the
crypto self-tests.
Signed-off-by: Longfang Liu
Add new skcipher algorithms for Kunpeng930 SEC:
OFB(AES), CFB(AES), CTR(AES),
OFB(SM4), CFB(SM4), CTR(SM4).
Signed-off-by: Wenkai Lin
Signed-off-by: Longfang Liu
---
drivers/crypto/hisilicon/sec2/sec_crypto.c | 88 +++---
drivers/crypto/hisilicon/sec2/sec_crypto.h | 2
's version.
Signed-off-by: Meng Yu
Reviewed-by: Zaibo Xu
Reviewed-by: Longfang Liu
---
drivers/crypto/hisilicon/hpre/hpre.h| 5 +++--
drivers/crypto/hisilicon/hpre/hpre_crypto.c | 4 ++--
drivers/crypto/hisilicon/qm.c | 4 ++--
drivers/crypto/hisilicon/qm.h
1. Fix a problem of error log printing
2. Modify error log printing style
Signed-off-by: Longfang Liu
---
drivers/crypto/hisilicon/sec2/sec.h| 5 +-
drivers/crypto/hisilicon/sec2/sec_crypto.c | 94 +++---
drivers/crypto/hisilicon/sec2/sec_crypto.h | 4 +-
3
Add support for new algorithms of SEC accelerator on Kunpeng930,
the driver and test case needs to be updated
Longfang Liu (5):
crypto: hisilicon/sec - add new type of sqe for Kunpeng930
crypto: hisilicon/sec - add new skcipher mode for SEC
crypto: hisilicon/sec - add new AEAD mode for SEC
In the new generation of accelerator hardware, in order to
add new algorithm support, the hardware adds a new SQE data structure,
so the driver has been upgraded as needed.
Signed-off-by: Sihang Chen
Signed-off-by: Longfang Liu
---
drivers/crypto/hisilicon/sec2/sec.h| 6 +-
drivers
As the new Kunpeng930 supports some new algorithms,
the driver needs to be updated
Longfang Liu (4):
crypto: hisilicon/sec - add new type of sqe for Kunpeng930
crypto: hisilicon/sec - add new skcipher mode for SEC
crypto: hisilicon/sec - add new AEAD mode for SEC
crypto: hisilicon/sec
In the new generation of accelerator hardware, in order to
add new algorithm support, the hardware adds a new SQE data structure,
so the driver has been upgraded as needed.
Signed-off-by: Sihang Chen
Signed-off-by: Longfang Liu
---
drivers/crypto/hisilicon/sec2/sec.h| 6 +-
drivers
1. Fix a wrong printing problem
2. Modify log print style
Signed-off-by: Longfang Liu
---
drivers/crypto/hisilicon/sec2/sec.h| 5 +-
drivers/crypto/hisilicon/sec2/sec_crypto.c | 92 +++---
drivers/crypto/hisilicon/sec2/sec_crypto.h | 4 +-
3 files changed, 49
Add new skcipher algorithms to Kunpeng930:
OFB(AES), CFB(AES), CTR(AES),
OFB(SM4), CFB(SM4), CTR(SM4).
Signed-off-by: Wenkai Lin
Signed-off-by: Longfang Liu
---
drivers/crypto/hisilicon/sec2/sec_crypto.c | 47 ++
drivers/crypto/hisilicon/sec2/sec_crypto.h | 2 ++
2
's version.
Signed-off-by: Meng Yu
Reviewed-by: Zaibo Xu
Reviewed-by: Longfang Liu
---
drivers/crypto/hisilicon/hpre/hpre.h| 5 +++--
drivers/crypto/hisilicon/hpre/hpre_crypto.c | 4 ++--
drivers/crypto/hisilicon/qm.c | 4 ++--
drivers/crypto/hisilicon/qm.h
Add new AEAD algorithms to SEC:
CCM(AES), GCM(AES), CCM(SM4), GCM(SM4).
Signed-off-by: Longfang Liu
---
drivers/crypto/hisilicon/sec2/sec.h| 4 +
drivers/crypto/hisilicon/sec2/sec_crypto.c | 384 -
drivers/crypto/hisilicon/sec2/sec_crypto.h | 5 +
3 files
more than 100,000 interrupts, which causes the system to
forcibly close the interrupt report and report the calltrace error.
so, when the driver goes to sleep and changes the system state to
suspend, the interrupt flag needs to be cleared.
Signed-off-by: Longfang Liu
---
drivers/usb/host/ehci-hub.c
1. Fix a problems.
2. Fix some coding style.
Changes v3 -> v4:
- Fixed an unused warning on dev.
- Create a patch for bugfix
Changes v2 -> v3:
- Delete shash test error patch.
Changes v1 -> v2:
- Modify the way to fix shash test error.
Longfang Liu (3):
crypto: hisilicon/se
When the log is output here, the device has not
been initialized yet.
Signed-off-by: Longfang Liu
---
drivers/crypto/hisilicon/sec2/sec_crypto.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/hisilicon/sec2/sec_crypto.c
b/drivers/crypto/hisilicon/sec2
cleanup static check errors for SEC
Signed-off-by: Longfang Liu
---
drivers/crypto/hisilicon/sec2/sec_main.c | 131 ++-
1 file changed, 76 insertions(+), 55 deletions(-)
diff --git a/drivers/crypto/hisilicon/sec2/sec_main.c
b/drivers/crypto/hisilicon/sec2
1.delete the original complex method of obtaining the
current device and replace it with the initialized
device pointer.
2.fixes some coding style
Signed-off-by: Longfang Liu
---
drivers/crypto/hisilicon/sec2/sec.h| 5 +-
drivers/crypto/hisilicon/sec2/sec_crypto.c | 75
1. Fix a problem of error log printing
2. Modify error log printing style
Signed-off-by: Longfang Liu
---
drivers/crypto/hisilicon/sec2/sec.h| 5 +-
drivers/crypto/hisilicon/sec2/sec_crypto.c | 82 +++---
drivers/crypto/hisilicon/sec2/sec_crypto.h | 2 -
3
1. Fix two problems.
2. Fix some coding style.
Longfang Liu (3):
crypto: hisilicon/sec - fixes some log printing style
crypto: hisilicon/sec - fixes some driver coding style
crypto: hisilicon/sec - fixes shash test error
arch/arm64/configs/defconfig | 2 +-
drivers/crypto
If this configuration item is not turned on,
the allocation of crypto_tfm will fail when
the shash algorithm calculates the hash
through the software.
Signed-off-by: Longfang Liu
---
arch/arm64/configs/defconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64
1. Fix a problem of error log printing
2. Modify error log printing style
Signed-off-by: Longfang Liu
---
drivers/crypto/hisilicon/sec2/sec.h| 5 +-
drivers/crypto/hisilicon/sec2/sec_crypto.c | 82 +++---
drivers/crypto/hisilicon/sec2/sec_crypto.h | 2 -
3
1. Fix two problems.
2. Fix some coding style.
Changes v1 -> v2:
- Modify the way to fix shash test error.
Longfang Liu (3):
crypto: hisilicon/sec - fixes some log printing style
crypto: hisilicon/sec - fixes some driver coding style
crypto: hisilicon/sec - fixes shash test er
If the header file "crypto/internal/hash.h" not
added, the allocation of crypto_tfm will fail when
the shash algorithm calculates the hash
through the software.
Signed-off-by: Longfang Liu
---
drivers/crypto/hisilicon/sec2/sec_crypto.c | 1 +
1 file changed, 1 insertion(+)
diff --git
cleanup static check errors for SEC
Signed-off-by: Longfang Liu
---
drivers/crypto/hisilicon/sec2/sec_main.c | 131 ++-
1 file changed, 76 insertions(+), 55 deletions(-)
diff --git a/drivers/crypto/hisilicon/sec2/sec_main.c
b/drivers/crypto/hisilicon/sec2
71 matches
Mail list logo