Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp125799imm; Sun, 8 Jul 2018 21:27:14 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc2TreRTRzm9i4ZIZSPeDXpSuzPNv8/YuBXT90Ry/1dSKgCOBbA+XrB3JILf7pTmoGCGe9z X-Received: by 2002:a62:e106:: with SMTP id q6-v6mr19957635pfh.75.1531110434766; Sun, 08 Jul 2018 21:27:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531110434; cv=none; d=google.com; s=arc-20160816; b=kdPLcy7Wnr+Ttzoh9/So5d8JssEUQm0CwCFMkPAkvKzh7mZTDPxCkjdqz0YVrJM7+2 h8Vrjz5d7c3HwAS7U3KyXb3MkXN+KP+slY8PBQxA3Pj9ODpkRVjGOJVqUudQHK+kY/Mg 6D7HD9Wl6j7VrTW3Z8FZqaQf5ldm+9eDCPJVC524244Mh6co3L6H1yav7f2s32Ay2ZXV 7YTnlQ7Llwq/gQzQQ49du7ihhbjujkB2488lmwmOj136A1esa6P4mKFc8UjJfmvuCbeu 3dO8/A9+iDay508FeJRVDl33QQQMhn+5oLOaIVO3frUg3jDomc/zxtfTaoMTfwwUekzu qYaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature:arc-authentication-results; bh=HKK2pBNsLDnBB21Tr6A4BhmNpXWi+aoDAdE8WwChFZU=; b=Pj4lekugT9N2f4HDJncyKe66ZNypheLASUuyHbb7Ry8o5UJwmA8ZspIwfspheKp/P0 HBZTeoeh2NOOVoUmoEYXCiin02GKSB1cChNtpZhf7FUV69T2tzfkCMWBEBfdspcjTQk7 Fg/QXovNrejqjm7+RY5XFBfDfpAqBtWNhvHRX2yel1XK31BgVqJsDnKnZqDeuJ5BFVpD ZEQowlpHs6IAe6Bmt7W86PDqcKjDeAGpQe7gE3OTTM/awRhc/IhOz3vE1wJDa/YTlC86 veo/xrj+qgkDTgmJySDUs/sZMttFbvlgqBAWwfyBo2+DAzqP7ky7o1yF7b+tXKUjeuwg WnZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm1 header.b=CkJeMbiZ; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=iENtMEuI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k4-v6si12761395pgo.77.2018.07.08.21.26.59; Sun, 08 Jul 2018 21:27:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kroah.com header.s=fm1 header.b=CkJeMbiZ; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=iENtMEuI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751150AbeGIE0X (ORCPT + 99 others); Mon, 9 Jul 2018 00:26:23 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:60391 "EHLO wout1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750814AbeGIE0U (ORCPT ); Mon, 9 Jul 2018 00:26:20 -0400 X-Greylist: delayed 492 seconds by postgrey-1.27 at vger.kernel.org; Mon, 09 Jul 2018 00:26:20 EDT Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 1958B31C; Mon, 9 Jul 2018 00:18:08 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 09 Jul 2018 00:18:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=HKK2pBNsLDnBB21Tr6A4BhmNpXWi+ aoDAdE8WwChFZU=; b=CkJeMbiZyG6UaJ4CC+KcnZij5MJGSkxkCCO6TCRhFuq// TzQEH41seCtFsH1slRkMUJGC2bqdOvLL5I/GSAPl8KujRPI0yPZV4AicNFsF3Pq5 YyllwcRROJHQ3K7+4d3EVu4LJU5aC/xcwjuGxWAg7y8ziWKmKMYF93B7xTJ548LD Kr3y7cLcoSB7tXd950fYOCI6UHtEHluO4ffHYw4xnbHzMGHdtsyKmw9viicBzP3q xBXuIpnkdmfDHtmXCEtmzHYfMXo1hGYoM6Pn1EwpbWKW9DDOLOd53/15NXRZUFIW TGkoMOBYWPn0SroRZeQz0CgAqmu25lNWUxSU+avVg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=HKK2pB NsLDnBB21Tr6A4BhmNpXWi+aoDAdE8WwChFZU=; b=iENtMEuIa/kRcyFBHrI1MA kazklyW/i7d6qI7liED/0zvUkb8/IDwyubA0FwOdWapUl0n7b5D3MRMrNYStbfcE SQVWnc9E/nwOmgNErFwD5wE1XOlUpEXQaGFUd1z7cJHGVp2F4kQ94o8aXWyEXJXH XUTDpyVmYzn6X39+kpa+10Z8xDQzeRIeEnx90YhaIdANcC2cFXl3XZyCNxN6dYbk ojrwu9fNZ9otE7qo5jp6q4FDP/QojtcwTVh0w1Op8kCTjMlIeLSD2zvqU6Tan7dI VZCng3vMbvwq9SRW7n4lWEnq5XmGQCaO6kUYXecDegMS6+0n1PasGe8avvEZmaSg == X-ME-Proxy: X-ME-Sender: Received: from localhost (unknown [46.44.180.42]) by mail.messagingengine.com (Postfix) with ESMTPA id 05414E455B; Mon, 9 Jul 2018 00:18:06 -0400 (EDT) Date: Mon, 9 Jul 2018 06:18:05 +0200 From: Greg KH To: =?utf-8?B?0JDQu9C10LrRgdC10Lkg0JHRgNC+0LTQutC40L0=?= Cc: linux-kernel@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arch@vger.kernel.org, Alexey Brodkin , Thomas Gleixner , stable@vger.kernel.org Subject: Re: [PATCH v2] devres: Really align data field to unsigned long long Message-ID: <20180709041805.GA5983@kroah.com> References: <20180708175621.6951-1-abrodkin@synopsys.com> <20180708184049.GA1645@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 08, 2018 at 09:45:31PM +0300, Алексей Бродкин wrote: > Hi Greg, > > вс, 8 июл. 2018 г. в 21:40, Greg KH : > > > > On Sun, Jul 08, 2018 at 08:56:21PM +0300, Alexey Brodkin wrote: > > > Depending on ABI "long long" type of a particular 32-bit CPU > > > might be aligned by either word (32-bits) or double word (64-bits). > > > Make sure "data" is really 64-bit aligned for any 32-bit CPU. > > > > > > At least for 32-bit ARC cores ABI requires "long long" types > > > to be aligned by normal 32-bit word. This makes "data" field aligned to > > > 12 bytes. Which is still OK as long as we use 32-bit data only. > > > > > > But once we want to use native atomic64_t type (i.e. when we use special > > > instructions LLOCKD/SCONDD for accessing 64-bit data) we easily hit > > > misaligned access exception. > > > > > > That's because even on CPUs capable of non-aligned data access LL/SC > > > instructions require strict alignment. > > > > > > Signed-off-by: Alexey Brodkin > > > Cc: Thomas Gleixner > > > Cc: stable@vger.kernel.org > > > --- > > > > > > Changes v1 -> v2: > > > > > > * Reworded commit message > > > * Inserted comment right in source [Thomas] > > > > > > drivers/base/devres.c | 8 ++++++-- > > > 1 file changed, 6 insertions(+), 2 deletions(-) > > > > Always use scripts/get_maintainer.pl to properly cc: the needed > > developer/maintainer. As it is, this patch is going to get dropped on > > the floor, sorry... > > Right I was way too relaxed dealing with very generic stuff which might get > not that much of attention as more narrow topics or subsystems. But anyways > get_maintainer.pl says you're the guy so do I need to do anything extra still or > it's OK for this time? Please resend it properly, it is not in my patch queue anywhere... greg k-h