Received: by 10.223.176.5 with SMTP id f5csp4100124wra; Tue, 30 Jan 2018 02:03:23 -0800 (PST) X-Google-Smtp-Source: AH8x226/TKaT6IrDBF6A9WmiQNvfJqIoHNxCfVk33ciCLPZ2Q1xCtHHIojhj72bmUSgWIP3CwnUA X-Received: by 10.98.135.76 with SMTP id i73mr29341996pfe.183.1517306603681; Tue, 30 Jan 2018 02:03:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517306603; cv=none; d=google.com; s=arc-20160816; b=oB+tYBZog2/sdxb2hQTsxBS7bIHtVjKqJhSnjA2tcFW1/WYeo6NC+NKmMf4ZmzxKa7 +9cADQdUCp8Z5sZXMjlF9eZAwjJXcKb6hDCnN6nRjM2V/nLVvyTMTXkdkT6fjCZCLBvc aSFdI4BF6bWLFHaWV5X5Pu1SVcxSNpgaImYkewLjP7m647zXGVZ/upb8/B/xhNR1wQfR EqkK00nfEhp3BfHyNYRP5lySPEOfGcijqdKhZ10wtZ8SEaPJZ8Eu2Z7hVruxzIH/gyoc 2tQWPCAKmOkLyXvbVSQc6wD0lIoHcmFN+m6xS9LV7nyUlbDJnCCsDTqycAbd9w6EooYk wLKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=dww1PQbnHVCV04liLZ4znDyrihZ/Jt4/HfEzUnhaAUs=; b=cMYnhlHi3E3Wh5e/4S0wTPPxW7k4+W5BSWo4FezKWxJ9myjj7xPqNMj7ZnK71gO8ha yr1Pg6dHACeCb9fgLnhc+0Qs+jpVN6JfzMZ0QzXqboVjI8SD7AYDxGRI9tbPTrTpt19+ +/b+NzKt7JWf6OcA/9I9VUYcJMcrVAEtQHIqNXLXg2D65iw93b5WJLIuVb6fbjpTIVqR /t/echvkPkx2iXcYPCQIaH8csTG6Je5PrMpm6cR7lHkLHKoBlwqzQ36zDKIUtLX7sBhD eFfDum7/4yc2hNvUE8a3CZMVrF4bFTG4FfubbTAp9JSnLrE9Ud3QOVSAsBQmeW3Ae4AB QWWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VtC5gX9Y; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 98-v6si11378341pla.756.2018.01.30.02.03.09; Tue, 30 Jan 2018 02:03:23 -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=@gmail.com header.s=20161025 header.b=VtC5gX9Y; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751779AbeA3KCA (ORCPT + 99 others); Tue, 30 Jan 2018 05:02:00 -0500 Received: from mail-it0-f41.google.com ([209.85.214.41]:56049 "EHLO mail-it0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751531AbeA3KBx (ORCPT ); Tue, 30 Jan 2018 05:01:53 -0500 Received: by mail-it0-f41.google.com with SMTP id c16so11912058itc.5; Tue, 30 Jan 2018 02:01:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=dww1PQbnHVCV04liLZ4znDyrihZ/Jt4/HfEzUnhaAUs=; b=VtC5gX9YMta+kw8IC+Mg67jANq5YnRu2cMQG9E2ur+i65VvHw+KCjoQ8vHdjahqQ5J 6wZ71WDVLRHWM1hpCcmyRphQrzgtkgrKwm5kTgtbk+2yWz37ZTjgjs0QigdRRBhY/scj NNN+zeU8Uuc2w9t9PW/gn2WBgx4InptoISnCJII+rvzlZ/5MbwVyLjmdFDrmYOrbfxdm As2p0EnGlX5xcai6a0SHeUst6us6WNMHPlK1qEvp6X3xrf6Ct9UwgewgChr1LGgIR2Is EAXk6H9o7rk3LyS6S5WiP9GYSX98lux44BOtiX08bI/ZLTMYhkbgO5/Y8ENGkG92wR0m b9zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=dww1PQbnHVCV04liLZ4znDyrihZ/Jt4/HfEzUnhaAUs=; b=Si0vAD2bh6tiZISexF4lxddApbESI642DRRkjYpR1lMrkfPEg3hvg8D6qJMgqQ52q/ z1+0fg3Ilh6UVo5WKlDfwqwQCkq9UYFwnu261ID4oGVF/fYrvwUIp6Gp418J1oj5nHiZ NVYMGJcNnod6/2RQ2Cr0VBl3uetf/OqkFcihnbOr45uIuWiEW7RVX4ndG6dIhsvGydgJ HynXsc1pk9AkJSaqppkW0HWsYQ83RiyohYQLxhXT6hLAnk5LWXjTnii9/loEfbKYewIY 1tt7CVRu1yR22zst+VwjHbdLtKOkgE5zvSsG4k+2SXCZ9hIaEg4DnrouQwbtRCTa/lyJ KHVw== X-Gm-Message-State: AKwxytevzk6F78qmzuDQWdFvaADFbb+JdCHTPJinxJXswc6XeQ36Uyzv RE1LGcdBIZv3YKHzU4kM6NwRskV6z3GDkzFbrOY= X-Received: by 10.36.37.2 with SMTP id g2mr29296180itg.129.1517306512829; Tue, 30 Jan 2018 02:01:52 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.175.34 with HTTP; Tue, 30 Jan 2018 02:01:52 -0800 (PST) In-Reply-To: References: <28c2c9da4da4c8b07473e97cd4a6cb953f4b507c.1515766253.git.green.hu@gmail.com> From: Vincent Chen Date: Tue, 30 Jan 2018 18:01:52 +0800 Message-ID: Subject: Re: [PATCH v6 07/36] nds32: Exception handling To: Arnd Bergmann Cc: Greentime Hu , Greentime , Linux Kernel Mailing List , linux-arch , Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , Networking , DTML , Al Viro , David Howells , Will Deacon , Daniel Lezcano , linux-serial@vger.kernel.org, Geert Uytterhoeven , Linus Walleij , Mark Rutland , Greg KH , Guo Ren , Randy Dunlap , David Miller , Jonas Bonn , Stefan Kristiansson , Stafford Horne , Vincent Chen Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-01-24 19:10 GMT+08:00 Arnd Bergmann : > On Wed, Jan 24, 2018 at 12:09 PM, Arnd Bergmann wrote: >> On Wed, Jan 24, 2018 at 11:53 AM, Vincent Chen wrote: >>> 2018-01-18 18:14 GMT+08:00 Arnd Bergmann : > >> Ok. I still wonder about the kernel part of this though: is it a good idea >> for user space to configure whether the kernel does unaligned >> accesses? I would think that the kernel should just be fixed in such >> a case. > > To clarify: I'm asking only about unaligned accesses from kernel code itself, > which is generally considered a bug when > CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS is disabled. > > Arnd Thanks for your comments. For performance, we decide always disable CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS even if hardware supports unaligned accessing. Therefore, I will remove kernel unaligned accessing from nds32/mm/alignment.c. In other words, alignment.c only addresses unaligned accessing for user space. Vincent