From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from confino.investici.org (confino.investici.org [93.190.126.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CCBA627CCE0 for ; Sun, 5 Jul 2026 19:23:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=93.190.126.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783279421; cv=none; b=aRw7E185pmVjNlycdIr4gw8IBqaVUIco0atFtcfKemQH9rPVyivbLMtVMYj5m0+s7jQePRGLEfiAVxelu6ptk6d/QXOhbwKrMp4AZs7zaRaLZ+cFd9PbpIXXc7ycZCQOR074nYex3CS9AlIr3osBHFkm2wt8lHWMmnSRFufTfE8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783279421; c=relaxed/simple; bh=FgDW9WobRzSR7XZYVIn4M1sgTmdgD7vPscemyjfyGeI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qSy3j373+LTqWobSbp/qoxZnxtMUazvNe9j94reOy1dKDbYWXRhtcE/2FnTkSMVW4VHYZ+yvBPoSh1wfgPAlEbWejrresWWKzoRsuntxCvHxXeYr400I7gMRnGFe2phHaXA9lvAzZ68P8naPoqJGPxvVgcspTLny1Mq/+jJGPfU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=grrlz.net; spf=pass smtp.mailfrom=grrlz.net; dkim=pass (1024-bit key) header.d=grrlz.net header.i=@grrlz.net header.b=ZYR4s1Vg; arc=none smtp.client-ip=93.190.126.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=grrlz.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=grrlz.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=grrlz.net header.i=@grrlz.net header.b="ZYR4s1Vg" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=grrlz.net; s=stigmate; t=1783279417; bh=LtswBt7fJGC2FH5TZPj10ctxD5pusGyaaIL4I2LRB/E=; h=From:To:Cc:Subject:Date:From; b=ZYR4s1VgG1pUmvU7WuDOYpNNxOuPBHlnlLlVC7ItyPso51nVigd1h/e68gM1lQNKe 8l3kl7E8OeKhR9C/Xd7mzJiwi+PIz5dLnrxxEOj2aDXHR7i4NK4ys6qgGckolokw2B CGpqFdrWaD7h0AtNdXfmur5+tt0Wf57T7gvsRwE8= Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4gtcpx42RVz10wr; Sun, 05 Jul 2026 19:23:37 +0000 (UTC) Received: by mx1.investici.org (Postfix) id 4gtcpw5p3wz10wg; Sun, 05 Jul 2026 19:23:36 +0000 (UTC) From: Bradley Morgan To: Catalin Marinas , Will Deacon , Bradley Morgan Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] arm64: sleep: two small compute_mpidr_hash cleanups Date: Sun, 5 Jul 2026 19:23:29 +0000 Message-ID: <20260705192331.23150-1-include@grrlz.net> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit compute_mpidr_hash silently produces a wrong hash if its register arguments overlap. Patch 1 turns that documented constraint into a build time error. Patch 2 factors the MPIDR hash slot lookup, open coded twice in the suspend and resume paths, into a shared macro so both callers stay in sync. No functional change intended. Bradley Morgan (2): arm64: sleep: assert compute_mpidr_hash registers are distinct arm64: sleep: dedup the sleep_save_stash slot lookup arch/arm64/kernel/sleep.S | 69 +++++++++++++++++++++++++-------------- 1 file changed, 44 insertions(+), 25 deletions(-) -- 2.53.0