From patchwork Mon Jan 22 16:16:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 13525717 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2011EC47DD9 for ; Mon, 22 Jan 2024 16:17:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=LbpXkrhi7YwERm7+jpMwlzBhaFUjAXOTX8+QtFxqUYI=; b=1ifGfXXsOKKqJh u/z7WK+kKgj7eQb8HHUH1ifB3PGzMU8dfhCl+dlqFyYMMCR7l4AZVqaSJ5+kEbROO17a0iJuViFcN GicrmWHe3g2PeGUiuuwaLPG9AJCVUtrpEfEqMxymzvGOrNISBVgMAk9f5/48X+jGRBtGSnyf9Vft8 2yYNAqKwbQYEX6L2V6hYVX3ThT4TENfi0HXrtESlmnQP1SqkB9MwbOapwbDJkY4NUCpu10B2uSzQQ QIrxu5l06qACmx+oL6D6Ju1s4E79rnAszpzdF+X41pj6mZlSOmmrq4iR7k3oy9Vm9Q0JLkkZyzryX 2SX6lzb8kPpE8Z+JnUSA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rRwyg-00CuE7-1d; Mon, 22 Jan 2024 16:16:50 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rRwyd-00CuCY-0P for linux-arm-kernel@lists.infradead.org; Mon, 22 Jan 2024 16:16:48 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CC43C1FB; Mon, 22 Jan 2024 08:17:29 -0800 (PST) Received: from usa.arm.com (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B55833F5A1; Mon, 22 Jan 2024 08:16:42 -0800 (PST) From: Sudeep Holla To: ARM SoC Team , SoC Team , ALKML Cc: Sudeep Holla , Arnd Bergmann , Cristian Marussi , Olof Johansson Subject: [GIT PULL] firmware: arm_scmi: Fixes for v6.8 Date: Mon, 22 Jan 2024 16:16:39 +0000 Message-ID: <20240122161640.3551085-1-sudeep.holla@arm.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240122_081647_210343_E6FB2D96 X-CRM114-Status: UNSURE ( 9.37 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi ARM SoC Team, Please pull ! Regards, Sudeep -->8 The following changes since commit 6613476e225e090cc9aad49be7fa504e290dd33d: Linux 6.8-rc1 (2024-01-21 14:11:32 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git tags/scmi-fixes-6.8 for you to fetch changes up to 6bd1b3fede83d8ba5314886062a9bfdada5102a9: firmware: arm_scmi: Fix the clock protocol supported version (2024-01-22 10:01:17 +0000) ---------------------------------------------------------------- Arm SCMI fixes for v6.8 Few fixes addressing the below issues: 1. A spurious IRQ related to the late reply can get wrongly associated with the new enqueued request resulting in misinterpretation of data in shared memory. This race-condition can be detected by looking at the channel status bits which the platform must set to the channel free before triggering the completion IRQ. Adding a consistency check to validate such condition will fix the issue. 2. Incorrect use of asm-generic/bug.h instead of generic linux/bUg.h 3. xa_store() can't check for possible duplication insertion, use xa_insert() instead 4. Fix the SCMI clock protocol version in the v3.2 SCMI specification 5. Incorrect upgrade of highest supported clock protocol version from v2.0 to v3.0 ---------------------------------------------------------------- Cristian Marussi (5): firmware: arm_scmi: Check mailbox/SMT channel for consistency firmware: arm_scmi: Use xa_insert() to store opps firmware: arm_scmi: Use xa_insert() when saving raw queues firmware: arm_scmi: Fix the clock protocol version for v3.2 firmware: arm_scmi: Fix the clock protocol supported version Tanzir Hasan (1): firmware: arm_scmi: Replace asm-generic/bug.h with linux/bug.h drivers/firmware/arm_scmi/clock.c | 5 ++--- drivers/firmware/arm_scmi/common.h | 1 + drivers/firmware/arm_scmi/mailbox.c | 14 ++++++++++++++ drivers/firmware/arm_scmi/perf.c | 23 ++++++++++++++++++----- drivers/firmware/arm_scmi/raw_mode.c | 12 ++++++++---- drivers/firmware/arm_scmi/shmem.c | 8 +++++++- 6 files changed, 50 insertions(+), 13 deletions(-)