Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7901809ybl; Tue, 24 Dec 2019 11:13:50 -0800 (PST) X-Google-Smtp-Source: APXvYqywBucV8sgUdAB6bpjE57ok451qHnoUR1gdLLizTrPGnT9l2ZaMPsGwLPvK0ebzmz7aRAKD X-Received: by 2002:a05:6830:1e2d:: with SMTP id t13mr41250015otr.128.1577214829826; Tue, 24 Dec 2019 11:13:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577214829; cv=none; d=google.com; s=arc-20160816; b=HKf4ybJTQusti7bT9n3EiNcp1OpS/Vdi1kKjVGOQ3dv2WLt+biOB6o0ylNyxdF749a EC4gX6YYmBt61YTLPfLneOWKUVWIgL0pi6AQ2GcGNEK9a+z/lodR3fNyaG1j0lwtF3LY uPqxOev2aM+ClnnbZnOqpCg0YFVHMbd047COZoFkcn2E5QJdPN/Cyk45edFBcPmqGXwC z0RBlbwNpK0MyGbFY+RFzkmK+W0olly1Moxg6pYl54NVwfHGH2UrBy3jeBJZJAbU0pAr O0oIZuDa2wu4C9wTLNtB01AW8oCAhv3td+q07VhJt+S1QX0rZ/L6dt0XOEhiC6RIpoLf b3tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:mail-followup-to:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=sN9oy8InhvYTWTcIBE/ApxS/MBEGLGguoOVJTgKsavo=; b=qks4UgzmdmwfM45H2PIXWMZCvbS1au9lUfQi7HAej2nZt3oIdUx3+3iCfUU+Oqrt8b Fu06zMByaLBmog2iG0CjTSfsVQaTKv1jqpaxmfyeSukY4wxZS01GUUj04nSp9ogeR97r 8iNiYINKKzWOanCe275+mJF6bM0182Fxi1tDIQf7jW9SMw8S6Y94fdvVtj/x9hplVWC6 5gow7fQxJ0qMa78CWQNz3lVd70VDv4zfJekITo/Pqb40PkJpkRt7/UESWV15QoX8d/uB uhmTs4fVltQAZjQaZyIUifmp+uQVjgdlTSUbTFy8HaiQEOXHUSemzTV9YHE7cQk3A58D 6vpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=jJVdKacB; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c19si4284697otp.3.2019.12.24.11.13.17; Tue, 24 Dec 2019 11:13: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=@redhat.com header.s=mimecast20190719 header.b=jJVdKacB; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726853AbfLXTJG (ORCPT + 99 others); Tue, 24 Dec 2019 14:09:06 -0500 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:59056 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726201AbfLXTJG (ORCPT ); Tue, 24 Dec 2019 14:09:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1577214545; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=sN9oy8InhvYTWTcIBE/ApxS/MBEGLGguoOVJTgKsavo=; b=jJVdKacBe0wQCss1x8T4wt7+tk0KPTIRzDkofj9xJNyi7ecBawk7LX288YcTzQbkpx1lU6 NRKZm0/+3rBvPElV0motQ7Qa2X5Li8QgvyQ/MImxDNbUPW5XhLRWvoZP76Qg5LQGkMjCyy s3YTmzHn0EaFEQg5V/YWbyYorq3m3EM= Received: from mail-yb1-f197.google.com (mail-yb1-f197.google.com [209.85.219.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-127-TkeCNZUeMaWNTn-I9_Tqnw-1; Tue, 24 Dec 2019 14:09:00 -0500 X-MC-Unique: TkeCNZUeMaWNTn-I9_Tqnw-1 Received: by mail-yb1-f197.google.com with SMTP id a14so15919397ybh.14 for ; Tue, 24 Dec 2019 11:09:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:reply-to :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=sN9oy8InhvYTWTcIBE/ApxS/MBEGLGguoOVJTgKsavo=; b=E7ZSoe49i2/lbMwWaF/6ILxVGU7jwevgf+fM5e30g1WzIDPP2Y0oUiw7GK3wE29Ii3 TowEtANhC0mwwORpeh4Tk3kXMvgOPPnlk+2mCATIvPJct7EOha6HIcskCpRVqrrAh/4A f2P54nb2l/P5JVVxTLe5OU9qRxilhatgPAuE/n0AoRGkpaCYG4LgUQRQegzsy0wSr1Xt X2Drvfdfzhhig5bE7bpcXCGcLpjjMIezwzsMuHBVwICcSOrqCVZ6HmJn2oR9T4T7d4B3 21k36liCh5B4yu/1xC3uTMlLvFzSIMEIwvvcP04uOnGchic8xS8CRyFkd+ecJhD4QDK5 vGCA== X-Gm-Message-State: APjAAAU4/BXEpmOAQ3365VqIArLO6BHB4SVrXDypVhcDZfpdZ7M8/DMm gZ09kw+LR0JY1SZGaC3oxlKLtCqLsd/vvk2FOsN3SwuCTF54c8iemmz1Vy8/orLhU5+FVmiQdOF mLytkW0AADNrURQ6UL1BndenP X-Received: by 2002:a25:68d2:: with SMTP id d201mr27072874ybc.177.1577214540288; Tue, 24 Dec 2019 11:09:00 -0800 (PST) X-Received: by 2002:a25:68d2:: with SMTP id d201mr27072853ybc.177.1577214540042; Tue, 24 Dec 2019 11:09:00 -0800 (PST) Received: from localhost (ip70-163-223-149.ph.ph.cox.net. [70.163.223.149]) by smtp.gmail.com with ESMTPSA id e131sm9679917ywb.81.2019.12.24.11.08.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Dec 2019 11:08:59 -0800 (PST) Date: Tue, 24 Dec 2019 12:08:57 -0700 From: Jerry Snitselaar To: Lu Baolu Cc: Joerg Roedel , Roland Dreier , Jim Yan , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] iommu/vt-d: Add a quirk flag for scope mismatched devices Message-ID: <20191224190857.kb32qjogzumoh4xv@cantor> Reply-To: Jerry Snitselaar Mail-Followup-To: Lu Baolu , Joerg Roedel , Roland Dreier , Jim Yan , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org References: <20191224062240.4796-1-baolu.lu@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline In-Reply-To: <20191224062240.4796-1-baolu.lu@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue Dec 24 19, Lu Baolu wrote: >We expect devices with endpoint scope to have normal PCI headers, >and devices with bridge scope to have bridge PCI headers. However >Some PCI devices may be listed in the DMAR table with bridge scope, >even though they have a normal PCI header. Add a quirk flag for >those special devices. > >Cc: Roland Dreier >Cc: Jim Yan >Signed-off-by: Lu Baolu >--- Reviewed-by: Jerry Snitselaar