Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp36860imb; Thu, 28 Feb 2019 15:12:49 -0800 (PST) X-Google-Smtp-Source: APXvYqwVnfrXPQNMGRp324Ukw4z5qOj4UYmeyJtZI69brFDJF4XVUESSsLfcuma9wWW5fV+js2b4 X-Received: by 2002:a63:e950:: with SMTP id q16mr1711681pgj.138.1551395569531; Thu, 28 Feb 2019 15:12:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551395569; cv=none; d=google.com; s=arc-20160816; b=P9QpTarPTErc1sR4ixCmP5TeKCtkA0gYIAXfdlFY5yBvgj4AaKpPqT4dwtyo5jQU8M MlWoKmkEuiJSoxim2zvvyFIVERISK+Xd/k46e4Jlk7PcVzBzPsYxOYenD1w6Hce1mbGh 0svardp5VYIlwYs+20VN0FihS4K8uvdtsBc0x9THjgOVA+a9tY8IWtv9Mjxr6C/Tfq+G V3Fe92zJkfRwRg1Z/+LLC5yW/tr1wJNgP2p4mGA3d6m2iidih5glQW9gZFc2rNGfbA7t xVb9ucRyHT3lOfPz2SG4IXicVrrbw0g18M82PpHLQsXEX8WU8h6KQOrDjdbbiE6TqlML pFJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:references:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=2FPYL+EdjAxnlC6NgutVIxhZIa452PT2/wxRnO9h6fg=; b=SJbBhL0zOI80/AL9VcNskTzgovSnd7ckMalEZEiig2UoYbIEU1/VO5W1IY2q1Mboy1 1moVspongwJjw9l7sYs4YwLbZTYuIBIrZI8k2yzT/rhSZC6qzatOGFq88PDpVo/cqdYT HgpO609gUZoV2hn5Udr7mo0fFPay89+Z36opo6/tfAvyw5k9qlW6hiv2gjka86A+WfiG rPr7FYgUTjnJmr83RuWQYq+P9HoE0FsOAANucB8FIKep68NWkiAQLdlFzCPfXiJQyvdr joJgyM+KsoS7u6ZJNQkUwT1+1ssNedf/fEQD9rn8wnse4UWW+uskB/kS4FJ6qLC37B9l u+ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=LFIKpZmD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 23si3995235pgc.220.2019.02.28.15.12.29; Thu, 28 Feb 2019 15:12:49 -0800 (PST) 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=@synopsys.com header.s=mail header.b=LFIKpZmD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387525AbfB1TYo (ORCPT + 99 others); Thu, 28 Feb 2019 14:24:44 -0500 Received: from smtprelay4.synopsys.com ([198.182.47.9]:49418 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730215AbfB1TYo (ORCPT ); Thu, 28 Feb 2019 14:24:44 -0500 Received: from mailhost.synopsys.com (badc-mailhost2.synopsys.com [10.192.0.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtprelay.synopsys.com (Postfix) with ESMTPS id C717924E0DE9; Thu, 28 Feb 2019 11:24:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1551381883; bh=UilihWv8L5KlZr9SlMcPyXKk8MT3Erb3FWYGJDoFHiU=; h=From:To:CC:Subject:Date:References:From; b=LFIKpZmDLH/aDtpePRs+nsrNNMihUSUWNDXMySZHVYv9y+u4jCTyrbrfMdaJ59yaN qME9bfuc8IQNysayza7t9K0V6CGBGXIOCJH75EZ0d+5RiaYNN6B5yTk4Q7dyTM8+MV W9D3QCWcld/oTPI0bJ35qU4KlpLOZwjL4rVwjC9J8ujzxwstnNO1xbldx2sDbv2nl7 bU+LJXZ6y/MlNUU6gENOiApx+hB6EJHBQ1MpFBt4GsWKumcWhCt7Z6onC1gcGH0nJP Dq2zTxd9I9AFoJwqXHm2JOR9zo6FGwFyzt1F6rsxxzqC7CuRlZ+IIbR6NnmX0npxjI 8OkBlwzQgMkng== Received: from US01WEHTC3.internal.synopsys.com (us01wehtc3.internal.synopsys.com [10.15.84.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mailhost.synopsys.com (Postfix) with ESMTPS id A8C2CA007B; Thu, 28 Feb 2019 19:24:43 +0000 (UTC) Received: from US01WEMBX2.internal.synopsys.com ([fe80::e4b6:5520:9c0d:250b]) by US01WEHTC3.internal.synopsys.com ([::1]) with mapi id 14.03.0415.000; Thu, 28 Feb 2019 11:24:43 -0800 From: Vineet Gupta To: Guenter Roeck CC: Eugeniy Paltsev , Claudiu Zissulescu , "linux-snps-arc@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] ARCv2: Add explcit unaligned access support (and ability to disable too) Thread-Topic: [PATCH] ARCv2: Add explcit unaligned access support (and ability to disable too) Thread-Index: AQHUz422b40bhmdW702O6EC/CP0bNQ== Date: Thu, 28 Feb 2019 19:24:43 +0000 Message-ID: References: <20190228174742.GA18868@roeck-us.net> <20190228185929.GA9842@roeck-us.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.144.199.106] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/28/19 10:59 AM, Guenter Roeck wrote:=0A= >> Once the patch hits mainline you could use that. In the mean time I'll b= ack out=0A= >> the "detector" as it might trip other people too.=0A= >>=0A= > Can you possibly use $(cc-option,-mno-unaligned-access), or would that=0A= > defeat the purpose ?=0A= >=0A= =0A= Indeed I was looking into Kconfig documentation and found something similar= .=0A= However there's an anti-dependency. It is enabled by default and can only b= e=0A= disabled with $(cc-option,-mno-unaligned-access)=0A= So guess we will have to change ARC_USE_UNALIGNED_MEM_ACCESS to=0A= ARC_*LACKS*_UNALIGNED_MEM_ACCESS=0A= =0A= I'll tinker a bit and post an update soon.=0A= =0A= -Vineet=0A=