Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4482197ybv; Tue, 25 Feb 2020 21:14:43 -0800 (PST) X-Google-Smtp-Source: APXvYqzakBlwd1SHEdROVW4C4y2EbDQbgU8Yp8Vx2ikNjaMHTB8l7+Ej9I7Jtkze0hHwzRUEYd+f X-Received: by 2002:a05:6808:9b4:: with SMTP id e20mr1663204oig.37.1582694082909; Tue, 25 Feb 2020 21:14:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582694082; cv=none; d=google.com; s=arc-20160816; b=qocGfivbPvQUD02Vrv7qSyYbaZ/tY9hhA75KSthnKID2nR3CC2jZ3rdxgohVPURZcb RRy8+dwMKy1Dz7t5QojXkA2d7WqQWUed1XX/Ghqtjt557lkq7AfaBYmb7yPZTrscx9EK TrDqTafD4v60eE13skdcDnXo4HG9FhuUvopzDBdXIZ6fldcKJh8ouL6VMtE2fZ8zBHLi dQCAO+kzn2lDAtYqXJ0ghSORUZAsitFiAn43pYLZ8qxXE1fQ0Aj3nRBZOpNLAIs0j9qO pR+/7S6eFxibvkMRsayGmc+Oc0HigJIPbmvHJH/NsE7WVMEYRPwItdkmy5X0xzhmkTG8 2pWw== 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 :in-reply-to:references:mime-version:dkim-signature; bh=1LXaH0AM3Y8GiQ0BYBKweRDuIK+vMIEbOzZHxCDE2mQ=; b=ZCDUajIJvhaJn0N2aVOOc7cdoIAhUOgWSIgIVdmXUQvl6eOnZC6CcAGrfhV49UGH2r Up50wK50Ufcn8p4HShlwPg08oTivrbUO1OzW5KGFbX92V4lsY36oXOoheQe4Dt7WrKRq x4HO4Rg2Bzo7yrWWvPTKzWQZQJgobg+ya8z8DP1xR/fQRXrNP+tZXDt4uNTIdmS/CSJs o66+dvvyySLGTt1SxigYTHMhpiL6uQoS3kAnhaxtzvPENVcDyNvOktLuuJy3iA1cUkGB jq9nGE5E9tc26O5nJ+m41XHzJSWjQfLzrpqLwB49+Bk26IiTMKLgsiORv2pYsEwNXi5q xyGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=y+uqSX++; 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 w197si569710oia.101.2020.02.25.21.14.30; Tue, 25 Feb 2020 21:14:42 -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=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=y+uqSX++; 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 S1727035AbgBZFNu (ORCPT + 99 others); Wed, 26 Feb 2020 00:13:50 -0500 Received: from mail-wm1-f46.google.com ([209.85.128.46]:51967 "EHLO mail-wm1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726970AbgBZFNt (ORCPT ); Wed, 26 Feb 2020 00:13:49 -0500 Received: by mail-wm1-f46.google.com with SMTP id t23so1529194wmi.1 for ; Tue, 25 Feb 2020 21:13:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1LXaH0AM3Y8GiQ0BYBKweRDuIK+vMIEbOzZHxCDE2mQ=; b=y+uqSX++4Ivf1iMMHR1UFkx0uYgStxTyy7DpqLMlvSMlRAuxDIcSKs9EKlOVpkClcu yNKZgxbgGEOrqF/0A9k1SRYb7WoJd93Vb85dftJLkmOk3wnxGzdc2ScO9g+CroIlAwKQ B8zbhNAJ2Iez++5RYB/f+TbwBdkiQDxSd4LaXMW42Tkl69wAnTd82BDaYMVy8jGfftew CB0VHBDHwAuD965da+DtIAdWbsSDyRKY//b0P9MfXjTAqr2Y3UpoqAHy5YHnwy4R8dlW ulqpa96TVF6Chdfw/UyJQ36uGTW5oqDJeZNbzIvViVTIWdnBro7CKqyyLLuYD4UsgDYb NKAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1LXaH0AM3Y8GiQ0BYBKweRDuIK+vMIEbOzZHxCDE2mQ=; b=YdAu6QLEi8i9GnV2G/bkB6qrLHd/gXkxj/iSZRwE6/vvCp6ABSZggRYphj/JPAZ8Ew HjRTHjuVCY+wPJOJv+xAy+1l3jmDsWvc+c+Z/UxtwmIs0qwSCBM6wA4v18Wfzbkl3+xb o8q5bjOI4k0JZqDsiMJB8HFKSTkojpizyflqapLG8zanwsP7I7whZ/QtpKI5i4Svz31o 1WZT6XxebKT8HrNIPedRIOsGwN0l4n08wy9GWF+2JmnXAnLoQcXPIENoUW7LI3ifvDs/ v1ll4f+wKifEzs9YcbijUh/fzGFG5lKK5JkJUu3Z0f3OxEVZW6WrCPFi3ny57/EUUBWd u58w== X-Gm-Message-State: APjAAAVxuDZjLMrgnqJJEapbo6SJ0ZSqe2CWCI48RvXj14Wz59w7PgCq sBzt5dTHTo8+oUXaujZaP+7hXRvTTVeJa2ysif8FQ3df X-Received: by 2002:a05:600c:2207:: with SMTP id z7mr3108536wml.138.1582694027620; Tue, 25 Feb 2020 21:13:47 -0800 (PST) MIME-Version: 1.0 References: <20200225224719.950376311@linutronix.de> <20200225231609.000955823@linutronix.de> In-Reply-To: <20200225231609.000955823@linutronix.de> From: Andy Lutomirski Date: Tue, 25 Feb 2020 21:13:36 -0800 Message-ID: Subject: Re: [patch 01/15] x86/irq: Convey vector as argument and not in ptregs To: Thomas Gleixner Cc: LKML , X86 ML , Steven Rostedt , Brian Gerst , Juergen Gross , Paolo Bonzini , Arnd Bergmann 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 Tue, Feb 25, 2020 at 3:26 PM Thomas Gleixner wrote: > > Device interrupts which go through do_IRQ() or the spurious interrupt > handler have their separate entry code on 64 bit for no good reason. > > Both 32 and 64 bit transport the vector number through ORIG_[RE]AX in > pt_regs. Further the vector number is forced to fit into an u8 and is > complemented and offset by 0x80 for historical reasons. > > Push the vector number into the error code slot instead and hand the plain > vector number to the C functions. Reviewed-by: Andy Lutomirski