Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3083392rwb; Mon, 15 Aug 2022 17:43:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR4QgIkRcEP677Y2sp8ktK+4Y/xwH00uhydF2I/sVuX6WsMzpurHaAeiiu/+NHoUGqcuddkW X-Received: by 2002:a17:906:a219:b0:6e4:86a3:44ea with SMTP id r25-20020a170906a21900b006e486a344eamr12115179ejy.385.1660610601627; Mon, 15 Aug 2022 17:43:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660610601; cv=none; d=google.com; s=arc-20160816; b=kyCT9mf6tYW/4XuuuYl0NgqQpNhu1rOLUj18KJZ3kenRV9tw5dX8hVzO7n4o+uNund gtICR2ptlAcw646/zlMdHaxl9YJnAk0EoBVJy7hSssiwmshFhOcSaMGi1xky93rETh87 Bz3vGxaLeaenMy82XFGVIe4/RIBaxUZIA116sjU6oZijELjOawyWkTtvFkSMJDPBXaf1 cRyxCuiU/YvjxIFshOH/CbbT1L5vsACEYjR8CvdGRdtbX7fOD3lGdmIQKjqyWXZVB/bC DTAaFFUCBsX3wftSapO/TPxDvVuUhj1JPmtjo2rkDYQApXdVwk+91fMIzQBYVSIZAc6T 4s9g== 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=ZWMyUdJmN/97ri2D1QuleM9lqhrr4i+ABx6xtKKIo63c0FJsiERVM+f4H5aqOTIovG 9i/D91D7Dmi39AbnqclfDVusb6E1jMyntre2XAdDFi/ny0vfqOcuzCSzGnAM6F8SkxTS a/4mfYDAD2iltXVI0tJskDwalXynaZI8QgPll6vN2UdSNQJnAt0MzPeIG4lhdxqogHqL Fq99fFsLgIzbQakjHU9jhae3reKIcwfkdwOxpckKlBgeh/AHqV6XL8ZcBKrXeo55Mjod 8BAi5tmaUzyQ9rEFOglBdt5MXlUtpHsxAPKjT25BA/ou2spI3ROGASgEfdgAG49sWD15 1mpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="VMD2/M39"; 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 b8-20020a056402084800b0043defd3ed96si10972243edz.237.2022.08.15.17.42.55; Mon, 15 Aug 2022 17:43:21 -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="VMD2/M39"; 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 S1357501AbiHPANm (ORCPT + 99 others); Mon, 15 Aug 2022 20:13:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357180AbiHPADw (ORCPT ); Mon, 15 Aug 2022 20:03:52 -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 B99724C60E; Mon, 15 Aug 2022 13:25:48 -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 7A6FCB81197; Mon, 15 Aug 2022 20:25:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C193EC433C1; Mon, 15 Aug 2022 20:25:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595146; bh=yEOsJkf0JUzDzGdTK4Ndj7FqnAcfm+AIdD0yILuhxek=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VMD2/M39Y/8+1ghvefTxAUmQvl5xgaAG/c1M3wKt3cYFLpQsJcOE6dIA8MG4revXl KQfEAtGoSCp4W7g42dLDcvRBRzixIU0akFrWLfROVxSN9yIovzrBARRkmSKTiqViUi m6HlknOqRLe92DrnrD04Twz06o0UVkVdc5Xv1VY4= 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.19 0671/1157] iio: common: ssp: Fix alignment for DMA safety Date: Mon, 15 Aug 2022 20:00:27 +0200 Message-Id: <20220815180506.536729229@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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