Received: by 10.223.148.5 with SMTP id 5csp7202028wrq; Thu, 18 Jan 2018 02:16:21 -0800 (PST) X-Google-Smtp-Source: ACJfBot23poMUOFjyFMsya8cThPdOvqyK71HNoK+hEsxdqArtMWU5vCtvsd3aA3cSZ1vjP6hSQyc X-Received: by 10.159.247.203 with SMTP id v11mr1235387plz.393.1516270580996; Thu, 18 Jan 2018 02:16:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516270580; cv=none; d=google.com; s=arc-20160816; b=vGl6Ex9dMoSkv49qKWf50H4z4oZNatswrhsOPvQXHvJAYlwpqa7P8+X4HJwc0HjrzD zIl6wIgZ2oXbgR0ndbiZmboZpPrwNmJ6bzfmS0qRJlhnjmJ0ftowVALPEmkd3fS61aKh 2PNEfYZlylg4cdcL491CNmWOUDezyefSMRlycTeodJM6Q6xW6huNh2eRmeD+36NG57EV 4Vxzb+Z88lFmxu50QRsN392iK6aFWT/Vnvi0pICQHbcXpvFdt9+KVoIHqOuDCrN5KCZY cyW1tLP16woMx9BuKvey0t7PhxyTgGKPKvlrgFdtrUXETMBYD7AN74JBuQouq8FesKYq VDAg== 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=hdrzqJJUcnmTaVERlm3GM8epmCvKXofT8qW8qBJ95WI=; b=qrErVAQ2hrhnCwQ9NRg177pgVeR8DTp0nKHFPNlJWLzUlRAR9vh3Sy/KYg8olN1rt2 QQv1aegOjYAPM8a4YzEA/MQu/WtkedNMdxQhVOfFNweGUSgoxCwqSMleRxeT5FSSaPS0 KbubTJJDUG0iI0K188gwOICrO3mRLSWzK3KBJ/FJSOtkBZnFrg9fKatAMe96A7tQmPH5 3WDX+1igmAKI0nLbNtmNEeF0WjMlR9kBkeFKBds/5FLKPwGQWQ5Slltos7wlWocpxOQj DxocJ1oWRQeg1wpg7SbeMuf5FHmOfJq5LlJ4EQtko0/q/X6NTZxpas65x1hfh+WRQi5p QuWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ZIOoP5Fz; 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 be3si6131737plb.484.2018.01.18.02.16.07; Thu, 18 Jan 2018 02:16:20 -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=fail header.i=@gmail.com header.s=20161025 header.b=ZIOoP5Fz; 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 S1755461AbeARKOX (ORCPT + 99 others); Thu, 18 Jan 2018 05:14:23 -0500 Received: from mail-oi0-f67.google.com ([209.85.218.67]:37542 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755376AbeARKOT (ORCPT ); Thu, 18 Jan 2018 05:14:19 -0500 Received: by mail-oi0-f67.google.com with SMTP id e144so15325751oib.4; Thu, 18 Jan 2018 02:14:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=hdrzqJJUcnmTaVERlm3GM8epmCvKXofT8qW8qBJ95WI=; b=ZIOoP5FzHTNI6Km7K5VdnEOnPHqWeTKPwAc24YxXLfp+T6XFguKCqEP1Jxnylnb1g5 Y3an4roi0tpYJCYcA5iuAVzSxzGa0E7BOs9pztuTqS66qwBwbz7RpV1oQMuPhJaf10uA QuecuyjxaHL25h18dkU451bHZ/WiAuCh6WWcW0BPH2xMA2k/C3RBbKemvjUgLpQRdw1n qptFZOvkjn91JEYxK1rzgn+NryFeqMYFsmM+qImrrcuQF30fYL8hmBdUWkOFfO/NLqm+ 82oquRxlF0p3GBYKpIoBsIMaYqH29F6QyDg59Z+5Sp27xN9joFTydt4EpcsZgQMytjpy 27Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=hdrzqJJUcnmTaVERlm3GM8epmCvKXofT8qW8qBJ95WI=; b=FiTtdEo0j26N5Bk0nv2VdacYg++JZVaemMCIxSmCcFuVAQHrM3nEU2TfupBlTfsccM +ry/02Iia60SmZpW9APvulCpAPkS6eNEuBmdhUtz5XQ1sjCsVionshuoX+FABaU0kj4q XCAmvImsxIYHmZm9HPstTJHSV6wc+bUkTWjuoyDgDiTAWRhSbIZgW1nJcpzRqKtMjD7g TxaWte6in8nXCVX6tThSCXDPg9KX4cbP91AyZi8Kf2WiI4HvHmgIH9EsYINxJs5/c6GS nDk+XXnpY6FGQIPSwOQ4VXYEoZ6SfAKfJ/bGW8OUJtx02phTMcH4PxVZAN9y5IMgaDGr 73IQ== X-Gm-Message-State: AKwxyteB3lnl1xDnZ9O++weJDuW+2/OPHYGHG0OIon0LGZDDFAsR4rSK h6JHGB3xYz+HRekVteAx1uH2uqTJ6ELBhJyaSaI= X-Received: by 10.202.225.212 with SMTP id y203mr2764601oig.64.1516270458148; Thu, 18 Jan 2018 02:14:18 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.17.89 with HTTP; Thu, 18 Jan 2018 02:14:17 -0800 (PST) In-Reply-To: <28c2c9da4da4c8b07473e97cd4a6cb953f4b507c.1515766253.git.green.hu@gmail.com> References: <28c2c9da4da4c8b07473e97cd4a6cb953f4b507c.1515766253.git.green.hu@gmail.com> From: Arnd Bergmann Date: Thu, 18 Jan 2018 11:14:17 +0100 X-Google-Sender-Auth: JmO8S99TuNdDioBHztj5aHUI_wk Message-ID: Subject: Re: [PATCH v6 07/36] nds32: Exception handling To: Greentime Hu Cc: Greentime , Linux Kernel Mailing List , linux-arch , Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , Networking , Vincent Chen , 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 On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: > From: Greentime Hu > > This patch includes the exception/interrupt entries, pt_reg structure and > related accessors. > > Signed-off-by: Vincent Chen > Signed-off-by: Greentime Hu Here it would be good to have a more detailed explanation about the alignment trap handling. I remember discussing it with you before, but don't remember the exact outcome. In particular you should explain here why you need to handle alignment traps in the first place, and what the expected defaults are (e.g. always disabled unless a user requests it, or always enabled) and what kind of code runs into the traps (e.g. buggy kernel code, correct kernel code, buggy user space code etc). Arnd