From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 88E642248B4 for ; Fri, 1 May 2026 12:25:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777638359; cv=none; b=fE57VRWau/p9/kgp9UuQ99FP3Hy0gK1AvcFXhF4LosOVp5MP2lRflFWL+DZkdtit4FKTrgt1qlswNz/ibFs4YjrfCYz5sRgrSvMLJsOHa2jEV4lDjxihoCsnKWoyucaqEKI+ICUAv/Qpoux2QpvuR+qgS9dXxbUnRnRt6nPZDPI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777638359; c=relaxed/simple; bh=BD1njWrFIsRGqlkeaC8LL5NP6MuNJn7qOY+oItqaEFs=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=mG7xDkxPVt52YvlgDulxJKgPL0L4bvNjbiu5tRjVCXT22Po09nxcRmRPfDNSsXseqW0W2xEHVL+CbErG5U0HYyuVnnn7uQukOaiw7jpJXMF8iSvpGby4BIq7UlpZslb2CXAxY1xwsYtDqG6IA8ksm2nLbou7v3mvWb0WYBHp3h0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ypw3DsOH; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Ypw3DsOH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D34D0C2BCB4; Fri, 1 May 2026 12:25:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777638359; bh=BD1njWrFIsRGqlkeaC8LL5NP6MuNJn7qOY+oItqaEFs=; h=Subject:To:Cc:From:Date:From; b=Ypw3DsOHIXlwgS1WhzraGaj0e7l1R7Zd9Tq+oIj1cbCj9ZMgDJKH2mC1B2FO2PNck mkuMQq73bHxpQ8pbdMrs8iIMpRU6c9Ra4PogN1tLMyH2H1aRHkZkTbcqdYUzturd+D PHdcyGXAQe8of0AcyQODFTxb0fQO+sUFCv17Z6EA= Subject: FAILED: patch "[PATCH] hwmon: (powerz) Avoid cacheline sharing for DMA buffer" failed to apply to 6.12-stable tree To: linux@weissschuh.net,linux@roeck-us.net Cc: From: Date: Fri, 01 May 2026 14:25:56 +0200 Message-ID: <2026050156-defendant-fretful-734b@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.12-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.12.y git checkout FETCH_HEAD git cherry-pick -x 3023c050af3600bf451153335dea5e073c9a3088 # git commit -s git send-email --to '' --in-reply-to '2026050156-defendant-fretful-734b@gregkh' --subject-prefix 'PATCH 6.12.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 3023c050af3600bf451153335dea5e073c9a3088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Date: Wed, 8 Apr 2026 20:45:50 +0200 Subject: [PATCH] hwmon: (powerz) Avoid cacheline sharing for DMA buffer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Depending on the architecture the transfer buffer may share a cacheline with the following mutex. As the buffer may be used for DMA, that is problematic. Use the high-level DMA helpers to make sure that cacheline sharing can not happen. Also drop the comment, as the helpers are documentation enough. https://sashiko.dev/#/message/20260408175814.934BFC19421%40smtp.kernel.org Fixes: 4381a36abdf1c ("hwmon: add POWER-Z driver") Cc: stable@vger.kernel.org # ca085faabb42: dma-mapping: add __dma_from_device_group_begin()/end() Signed-off-by: Thomas Weißschuh Link: https://lore.kernel.org/r/20260408-powerz-cacheline-alias-v1-1-1254891be0dd@weissschuh.net Signed-off-by: Guenter Roeck diff --git a/drivers/hwmon/powerz.c b/drivers/hwmon/powerz.c index 96438f5f05d4..6e1359144cab 100644 --- a/drivers/hwmon/powerz.c +++ b/drivers/hwmon/powerz.c @@ -6,6 +6,7 @@ #include #include +#include #include #include #include @@ -33,7 +34,9 @@ struct powerz_sensor_data { } __packed; struct powerz_priv { - char transfer_buffer[64]; /* first member to satisfy DMA alignment */ + __dma_from_device_group_begin(); + char transfer_buffer[64]; + __dma_from_device_group_end(); struct mutex mutex; struct completion completion; struct urb *urb;