Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4323617pxb; Tue, 10 Nov 2020 13:32:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJwxJvnwawU7JRZa70ymnBeLKxGo2mAL+x+Cf5712XOno+GXtKmkr/D1qQTNf4mrWhyDTAjM X-Received: by 2002:a05:6402:cb4:: with SMTP id cn20mr1538434edb.186.1605043970489; Tue, 10 Nov 2020 13:32:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605043970; cv=none; d=google.com; s=arc-20160816; b=hWHZKTWnkGOR2qGXLV0YDwXYVfKIp9bUHxHE8zVNvtl8awgO8vB/a4/VsyeYEPnuY5 KOkDoehnuP1tpGvZQqLr1nnfDGcT+bJ6M5PBifGwQ3EAkK2dga6DLSHMzJHipKx4g352 yryRjmH7v0f70AEvHNVr0m+fLxr+KuT5DOh+XQ9Z9rex4NkYAMag/uk50L8OKp9Ed/+8 jcRVkChdo+ZMYqNI7L2Z5JGv4+g8mszVqyAJYo1FLllsUoYKi2g4YPnXFqlJpvEBUwfR 2fUMvPUGNP9a3KLwwPjXxiamEvdEps6Wx4xtPCg8wnI1viQyHOuZyHSVN9PPRdkA/f1U PcWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature; bh=fq2aucVEZZJCAM7C2M4Blnd6jjxEhJ4M6187ixHV0I0=; b=M34uovkACVyFERS4QTMZHXxSGcU1/yZXHd0oGJTI0hldxwbsWqbxGCKlAyiunqd3Eb xRiE9NvtIa+V30B1ycUTaDe38IAfflmMIPEw3qNq8Zd01GLvet0mw5FvqaVruSWX4kiL 8cqgFaykeuhZ/X6Hn4edv+NKuITjNjv5QNKDuGdYJlC+eXg7PJT0UjIPKYiMYXknCLsu uURWuNr30HHD9hdo60Z6d3KKL3Y2CsyNff7tMIA9zqCXjK0PnrkK5OZK3chhV/kSnTrb LVPyrMzoIY2RyVsGy6kFv6trnAblHDw53g65Ra/NeB+tfDxoM540ssUJSc6XgJxWRNkQ G3rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=buAOTdlP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p22si6581eds.42.2020.11.10.13.32.26; Tue, 10 Nov 2020 13:32:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=buAOTdlP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731818AbgKJVaP (ORCPT + 99 others); Tue, 10 Nov 2020 16:30:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726462AbgKJVaO (ORCPT ); Tue, 10 Nov 2020 16:30:14 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50AD3C0613D1 for ; Tue, 10 Nov 2020 13:30:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Message-ID:From:CC:To:Subject: Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To: Date:Sender:Reply-To:Content-ID:Content-Description; bh=fq2aucVEZZJCAM7C2M4Blnd6jjxEhJ4M6187ixHV0I0=; b=buAOTdlPXJpTWjMznfx0Tv4XMg LNmff95PIyKewnIsIe7xZrnM0XuwmFVpZ2jiyAXKCkelDXVDv/4XH0byiWVOnVv7d2789mEgu/4ME oLsdCWlOf363Dis48QSkq27Ta6j8OkahXm3LvSQ+vWd1rG0TiCVqPx62JxN4FfVZu3+m1jssx8xjT Bk5KqE2/zAoloiXz+byqylxq6x6tRzyXwUHDFWwxO6Vvu5kl2VZ8T/KZk4IdvZqjySQXie6txXRKf SRFT/yfUJP6rg4E8EyKzThG/XlUcMrBaQpOJUDLslecrYU3myEckhqdt02z9nJbfitFQ/+oOlxwGj jQ+E2cyw==; Received: from [2001:8b0:10b:1:b16b:5d8a:941b:e15c] by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcbDN-0004s6-DU; Tue, 10 Nov 2020 21:30:09 +0000 Date: Tue, 10 Nov 2020 21:30:07 +0000 User-Agent: K-9 Mail for Android In-Reply-To: <87y2j9exk2.fsf@nanos.tec.linutronix.de> References: <20201024213535.443185-20-dwmw2@infradead.org> <160397373817.397.3191135882528008704.tip-bot2@tip-bot2> <20201110061046.GA7290@nazgul.tnic> <87d00lgu13.fsf@nanos.tec.linutronix.de> <9a003c2f-f59a-43ab-bbd5-861b14436d29@amd.com> <87a6vpgqbt.fsf@nanos.tec.linutronix.de> <82d54a74-af90-39a4-e483-b3cd73e2ef03@amd.com> <78be575e10034e546cc349d65fac2fcfc6f486b2.camel@infradead.org> <877dqtgkzb.fsf@nanos.tec.linutronix.de> <874klxghwu.fsf@nanos.tec.linutronix.de> <45B3C20C-3BBB-40F3-8A7B-EB20EDD0706F@infradead.org> <87y2j9exk2.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [EXTERNAL] [tip: x86/apic] x86/io_apic: Cleanup trigger/polarity helpers To: Thomas Gleixner , Tom Lendacky , Borislav Petkov CC: linux-kernel@vger.kernel.org, x86 , Qian Cai , Joerg Roedel From: David Woodhouse Message-ID: <8C2E184C-D069-4C60-96B5-0758FBC6E402@infradead.org> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10 November 2020 21:01:17 GMT, Thomas Gleixner w= rote: >On Tue, Nov 10 2020 at 19:21, David Woodhouse wrote: > >> On 10 November 2020 18:56:17 GMT, Thomas Gleixner > wrote: >>>On Tue, Nov 10 2020 at 18:50, Thomas Gleixner wrote: >>>> On Tue, Nov 10 2020 at 16:33, David Woodhouse wrote: >>>>> If I could get post-5=2E5 kernels to boot at all with the AMD IOMMU >>>>> enabled, I'd have a go at throwing that together now=2E=2E=2E >>>> >>>> It can share the dmar domain code=2E Let me frob something=2E >>> >>>Not much to share there and I can't access my AMD machine at the >>>moment=2E Something like the untested below should work=2E >> >> Does it even need its own irqdomain? Can it not just allocate >directly >> from the vector domain then program its own register directly based >on >> the irq_cfg? > >It uses pci_enable_msi() and I have no clue about that piece of >hardware >and whether that is actually required or not=2E If it is, then it needs a >domain because that's what pci_enable_msi() uses=2E I'd be kind of surprised if it is required, but testing on qemu is obvious= ly not going to cut it=2E Tom? --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E