Received: by 10.192.165.148 with SMTP id m20csp2273852imm; Thu, 3 May 2018 13:29:55 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpWah/smGL/fVKPH8aVFL2tWbuA2K+gx40BR3y68Irxa6p4CPV2ztBYgq6l8plgCuSXEtTs X-Received: by 2002:a63:87c6:: with SMTP id i189-v6mr19763305pge.2.1525379395580; Thu, 03 May 2018 13:29:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525379395; cv=none; d=google.com; s=arc-20160816; b=V8ctbkPQoRRgF84Y4qHd46u5FeqJYvQMEmKF+ThjYUU4ZHc5533nJFbTRLCzEsh9qy Q6YS4w30Lzv34I4m7rugQ3WaL/BhBUO0f+sforC5asw5fo/gIPf0DAkvcmsQeH2KWAY1 7+LzZLQpFcKmor9c8m9dEzx5LedzQZNoaoRlxDXw3wcYh2YeLUg/LYUMSn03/b7yuUcp SwsItnE6VYQ1vX+0i5rae6Oj6rGGZwNUUBD8U0hpF7jPnCeCBQAaI+xih62qMyy5ZMSO rdvTlkU6DR1MC2fGPlq1rS2WvYYGaZb5J04Nlqaw0N0kBbr1HZLPa1oMXafb7jZJzj4C CeSw== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=/luLRLDJpXsQf00a6FerqoRw86hGIUdYDOsl+oCLm1I=; b=XOafWRDqkofR7Mr9lDHkZyclMRY3n/i8nP6C0OGpWbLDm1gV5fSjy1eqsMLK1Bcz2s sj8P/UUgbvpoPuO90/aMN2ohILDX5cT1XLldg6UPAxs1F2OX5YIpXlkxKitybQ2P1Lpa IzTuzES89pKkm20DoadkQxlazB8myyNGu4VSJIyVLsSpj0mo/g6mWYwm/DeaJccWha3c hmd8rVEZDGryvBQSfrIG9+RPtLXAVfJhVGaqTnnfqlt6KKPKpvvnfhyNEEDJp661AIDO T55ROUBTm+ZOPczF5XkU5nTb0VkVVGD0yGF52hF7OMD7Fyg7fjB8g3t+E0xiX8ND7DWa uoAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@8bytes.org header.s=mail-1 header.b=kbfLiYOx; 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=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g187-v6si6086890pgc.644.2018.05.03.13.29.41; Thu, 03 May 2018 13:29:55 -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=fail (test mode) header.i=@8bytes.org header.s=mail-1 header.b=kbfLiYOx; 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=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751294AbeECU3b (ORCPT + 99 others); Thu, 3 May 2018 16:29:31 -0400 Received: from 8bytes.org ([81.169.241.247]:36004 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750911AbeECU3a (ORCPT ); Thu, 3 May 2018 16:29:30 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id D15EF1EF; Thu, 3 May 2018 22:29:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=8bytes.org; s=mail-1; t=1525379368; bh=CdnNzamOX1ewkEabqhCs+8hrJAcN8DDuNcPCLGFRcX8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kbfLiYOxXPUbicL+tWoAxg5g5OFjY0ydHzUHAinla6UdE/J7o9WXtzoMFKOx4MZsi AkymIycvUd+/ySWCXOx97a+qKD70VHnL0N8E6QReqiwaEoaZCBl8FE67IDFAqkuusk A0IA5gdhZoXXlaajjNoNTjfpNkpQk+cNUNrDM6qvGY5dXp8EEIxz+liw6f7J78bLFh L4iALzJ7oVMiyEIun/Lj7cc+I860JkRmWwG7ChSn/IMrZwsXYIqwIapf4UmIZKSwrO GZY3ZhPfm+SFAhgrz0tYOvDmBQrwQ4Ytf9eKgMrfoWy8S9aNJiauEapBhPNBJ0npk/ z9yfsSwZdwlAQ== Date: Thu, 3 May 2018 22:29:28 +0200 From: Joerg Roedel To: Gary R Hook Cc: Gary R Hook , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] iommu/amd - Update the PASID information printed to the system log Message-ID: <20180503202928.GZ15462@8bytes.org> References: <152520429853.30928.9793486018349326103.stgit@taos> <152520437211.30928.8410126837908568791.stgit@taos> <20180503135706.nypxlwlt7jhqhhum@8bytes.org> <526f3331-610f-9556-1d6d-f595d689b6de@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <526f3331-610f-9556-1d6d-f595d689b6de@amd.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 03, 2018 at 01:09:18PM -0500, Gary R Hook wrote: > Yes, I didn't quite get this right. Both values should be passed along. Or > perhaps the entire event could be passed in and decoded by > amd_iommu_report_page_fault()? You already pass in the flags, you can chose the correct message by looking at the GN flag there and treat the value as a domid or a pasid. Joerg