Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3023439rwb; Mon, 15 Aug 2022 16:21:01 -0700 (PDT) X-Google-Smtp-Source: AA6agR7b49EguQPHq2cmHXd9Xu+WBWapcBzj7ALb4rWLMUFR2d6aD0Vwck2Wb/uDK5mR5HOeEX1k X-Received: by 2002:a17:907:2bd7:b0:730:8f34:28ad with SMTP id gv23-20020a1709072bd700b007308f3428admr11774416ejc.632.1660605661186; Mon, 15 Aug 2022 16:21:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605661; cv=none; d=google.com; s=arc-20160816; b=WVir4m8yqPC3XOyMLvpIAXNV97t+L42GQ4j0t7i24+FZ1OZmdKg2q7jwpb7QFasMot oQSYqyaUNESfpqiymk9SDxx/flGXkFz103qqvFFxAgbBq8xrQcQ2EBR36nk01JzfFy53 vnf5wAVEAgU/PvyYg6sXYqYyl6zsj+P3x/Fk5/+IKHZWrEJNcSWqbppyD5H704nbsYbf PQ9zx9kLcsNhrMi3fg2j4feG6zBa4R6zwMtDGW9QP3qKZ+UZFCeumSinIumJo0LwN1ui FAHdlNRuSNGg00AihfJJUESh4RAB8IQmfv3YpobIAyr+iJ49CGpeiBdPDhQ6C54MvpMm 2UxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=dP3Lsw0RiwYR46Fc6cZ45R56/0Jno/EAUekp2T4EABw=; b=x/m02IV020QZH3T53vN3JBlgS1i6qEbxA7K4onZF+mSSFjLi/ldb4ObHZ8GE9pJV08 BZF/wDgDruHjeXAUvlPv2+PoE56gN+UaWFe4EnjMwisO2zlvROQjx5BxGzu51Knj48aZ BGIEmiAJQuOsao3mke8ypskCxUipXRW0Kql52ZAUoYnXC8Ca7WUStyolal4a92OyJ91V hR87gZSos7f+GcseuImdbbg1+dtr4tojD0hRwn6OPlZKNUMzD+X6+NNlixjDzTs5LYbx H7BuzppWnh8DiCbagWlvlBOGPyI4nF0EGjJcHmv5XZjkIBUrNwiUXS13Gxx+kvszwXY/ xCfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cTH+jBm0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gh4-20020a170906e08400b0072a89cb4513si6816784ejb.494.2022.08.15.16.20.36; Mon, 15 Aug 2022 16:21:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cTH+jBm0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349251AbiHOVm7 (ORCPT + 99 others); Mon, 15 Aug 2022 17:42:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349039AbiHOVib (ORCPT ); Mon, 15 Aug 2022 17:38:31 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B12072DABF; Mon, 15 Aug 2022 12:28:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 40E74B81062; Mon, 15 Aug 2022 19:28:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8939EC433C1; Mon, 15 Aug 2022 19:28:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591691; bh=yEOsJkf0JUzDzGdTK4Ndj7FqnAcfm+AIdD0yILuhxek=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cTH+jBm02Q8WdLNeWmun/BZe9gvVujX9uh7/eDnKwsibv4umteRuW4sFgVyiRqBNK AvtnWBD2VMkgeF/9tQuY84Sm/6KOjeoRCgUgQHZOjROn9uvFzzwyB2gYNiN0UgFFI1 oYxo8jV8I1gEawEEoPN8lv2bohrR62XWcRhzMqG0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jonathan Cameron , =?UTF-8?q?Nuno=20S=C3=A1?= , Sasha Levin Subject: [PATCH 5.18 0626/1095] iio: common: ssp: Fix alignment for DMA safety Date: Mon, 15 Aug 2022 20:00:25 +0200 Message-Id: <20220815180455.342707295@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jonathan Cameron [ Upstream commit 314d2b1978bb3d20b1ec239f4e28c394da493f36 ] ____cacheline_aligned is an insufficient guarantee for non-coherent DMA on platforms with 128 byte cachelines above L1. Switch to the updated IIO_DMA_MINALIGN definition. Fixes: 50dd64d57eee ("iio: common: ssp_sensors: Add sensorhub driver") Signed-off-by: Jonathan Cameron Acked-by: Nuno Sá Link: https://lore.kernel.org/r/20220508175712.647246-43-jic23@kernel.org Signed-off-by: Sasha Levin --- drivers/iio/common/ssp_sensors/ssp.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/iio/common/ssp_sensors/ssp.h b/drivers/iio/common/ssp_sensors/ssp.h index abb832795619..f649cdecc277 100644 --- a/drivers/iio/common/ssp_sensors/ssp.h +++ b/drivers/iio/common/ssp_sensors/ssp.h @@ -221,8 +221,7 @@ struct ssp_data { struct iio_dev *sensor_devs[SSP_SENSOR_MAX]; atomic_t enable_refcount; - __le16 header_buffer[SSP_HEADER_BUFFER_SIZE / sizeof(__le16)] - ____cacheline_aligned; + __le16 header_buffer[SSP_HEADER_BUFFER_SIZE / sizeof(__le16)] __aligned(IIO_DMA_MINALIGN); }; void ssp_clean_pending_list(struct ssp_data *data); -- 2.35.1