The following commit has been merged into the irq/irqchip-next branch of irqchip:
Commit-ID: a3d66a76348daf559873f19afc912a2a7c2ccdaf
Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/a3d66a763…
Author: Pali Rohár <pali(a)kernel.org>
AuthorDate: Mon, 25 Apr 2022 13:37:05 +02:00
Committer: Marc Zyngier <maz(a)kernel.org>
CommitterDate: Fri, 06 May 2022 12:18:37 +01:00
irqchip/armada-370-xp: Do not touch Performance Counter Overflow on A375, A38x, A39x
Register ARMADA_370_XP_INT_FABRIC_MASK_OFFS is Armada 370 and XP specific
and on new Armada platforms it has different meaning. It does not configure
Performance Counter Overflow interrupt masking. So do not touch this
register on non-A370/XP platforms (A375, A38x and A39x).
Signed-off-by: Pali Rohár <pali(a)kernel.org>
Cc: stable(a)vger.kernel.org
Fixes: 28da06dfd9e4 ("irqchip: armada-370-xp: Enable the PMU interrupts")
Reviewed-by: Andrew Lunn <andrew(a)lunn.ch>
Signed-off-by: Marc Zyngier <maz(a)kernel.org>
Link: https://lore.kernel.org/r/20220425113706.29310-1-pali@kernel.org
---
drivers/irqchip/irq-armada-370-xp.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/drivers/irqchip/irq-armada-370-xp.c b/drivers/irqchip/irq-armada-370-xp.c
index c877285..ee18eb3 100644
--- a/drivers/irqchip/irq-armada-370-xp.c
+++ b/drivers/irqchip/irq-armada-370-xp.c
@@ -327,7 +327,16 @@ static inline int armada_370_xp_msi_init(struct device_node *node,
static void armada_xp_mpic_perf_init(void)
{
- unsigned long cpuid = cpu_logical_map(smp_processor_id());
+ unsigned long cpuid;
+
+ /*
+ * This Performance Counter Overflow interrupt is specific for
+ * Armada 370 and XP. It is not available on Armada 375, 38x and 39x.
+ */
+ if (!of_machine_is_compatible("marvell,armada-370-xp"))
+ return;
+
+ cpuid = cpu_logical_map(smp_processor_id());
/* Enable Performance Counter Overflow interrupts */
writel(ARMADA_370_XP_INT_CAUSE_PERF(cpuid),
My Good Friend,
Before I introduce myself, I wish to inform you that this mail is not
a hoax mail and I urge you to treat it seriously. This mail must come
to you as a big surprise, but I believe it is only a day that people
meet and become great friends and business partners. Please I want you
to read this mail very carefully and I must apologize for barging this
message into your mail box without any formal introduction due to the
urgency and confidentiality of this business and I know that this
message willcome to you as a surprise. Please this is not a joke and I
will notlike you to joke with it ok, with due respect to your person
and much
sincerity of purpose, I make this contact with you as I believe that
you can be of great assistance to me. My name is Mr. Roman Arkadyevich
Abramovich (born 24 October 1966)I am a billionaire Russian oligarch
and politician. I hold joint Israeli and Portuguese citizenships.
Please see this as a confidential message and do not reveal it to
another person and let me know whether you can be of assistance
regarding my proposal below because it is top secret.
I am one of seven oligarchs sanctioned by the UK government over the
2022 Russian invasion of Ukraine which i never supported, including
asset freezes and travel bans. But now as all my acounts and valuable
assets have been frozen and conphisicated. There is this very account
i opened without my identity and now i cannot claim it with my name
and identity because it was opened in an escrow account in a bank in
Africa when i was scouting for good african players to play for my
club Chelsea,the funds in the bank is (£250,000,000 million British
Pounds)two hundred and fiffty million British pounds.This is where you
come in now as the beneficiary of the said fund because i left the
space of the beneficiary open for me to claim the funds back through a
trusted beneficiary like you.
Please if you can stand and transfer this fund to your designated
account as the beneficiary i will back you up with the neccessary
information that you will need. I want you to know that this is a
hundrd percent risk free transaction if you follow my instructions
there will be no mistakes.Once the fund is transferred into your
account please take only (£50,000,000 million Pounds) and keep the
rest (£200,000,000 million Pounds) for me. i will inform you in my
next mail on how to invest the money in your own country.
If you are willing to assist me on this i will feed you with more details.
sincerely,
Mr.R.Abramovich.
Re-enable the registration of algorithms after fixes to (1) use
pre-allocated buffers in the datapath and (2) support the
CRYPTO_TFM_REQ_MAY_BACKLOG flag.
This reverts commit 8893d27ffcaf6ec6267038a177cb87bcde4dd3de.
Cc: stable(a)vger.kernel.org
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu(a)intel.com>
Reviewed-by: Marco Chiappero <marco.chiappero(a)intel.com>
Reviewed-by: Adam Guerin <adam.guerin(a)intel.com>
Reviewed-by: Wojciech Ziemba <wojciech.ziemba(a)intel.com>
---
drivers/crypto/qat/qat_4xxx/adf_drv.c | 7 -------
drivers/crypto/qat/qat_common/qat_crypto.c | 7 -------
2 files changed, 14 deletions(-)
diff --git a/drivers/crypto/qat/qat_4xxx/adf_drv.c b/drivers/crypto/qat/qat_4xxx/adf_drv.c
index fa4c350c1bf9..a6c78b9c730b 100644
--- a/drivers/crypto/qat/qat_4xxx/adf_drv.c
+++ b/drivers/crypto/qat/qat_4xxx/adf_drv.c
@@ -75,13 +75,6 @@ static int adf_crypto_dev_config(struct adf_accel_dev *accel_dev)
if (ret)
goto err;
- /* Temporarily set the number of crypto instances to zero to avoid
- * registering the crypto algorithms.
- * This will be removed when the algorithms will support the
- * CRYPTO_TFM_REQ_MAY_BACKLOG flag
- */
- instances = 0;
-
for (i = 0; i < instances; i++) {
val = i;
bank = i * 2;
diff --git a/drivers/crypto/qat/qat_common/qat_crypto.c b/drivers/crypto/qat/qat_common/qat_crypto.c
index 80d905ed102e..9341d892533a 100644
--- a/drivers/crypto/qat/qat_common/qat_crypto.c
+++ b/drivers/crypto/qat/qat_common/qat_crypto.c
@@ -161,13 +161,6 @@ int qat_crypto_dev_config(struct adf_accel_dev *accel_dev)
if (ret)
goto err;
- /* Temporarily set the number of crypto instances to zero to avoid
- * registering the crypto algorithms.
- * This will be removed when the algorithms will support the
- * CRYPTO_TFM_REQ_MAY_BACKLOG flag
- */
- instances = 0;
-
for (i = 0; i < instances; i++) {
val = i;
snprintf(key, sizeof(key), ADF_CY "%d" ADF_RING_ASYM_BANK_NUM, i);
--
2.35.1