Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4432828ybl; Mon, 13 Jan 2020 13:41:01 -0800 (PST) X-Google-Smtp-Source: APXvYqyVLu6LgNg5bK50I0RRZf6AdjQIxVE0Yuq2espXnQptNm1NH2jhY9gBupUocovLGrOUstMw X-Received: by 2002:a05:6830:4d9:: with SMTP id s25mr14899642otd.171.1578951661079; Mon, 13 Jan 2020 13:41:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578951661; cv=none; d=google.com; s=arc-20160816; b=VWn/MoPWw+VfCkFP6pZCVJJDYOzK9KKFa4ho+70aFGTTafRDQmKFI7l5ztWRdjw2IU 505EUnTu5oNKgvgniiVep9ufC8JQUIbOAraEjgwCy0b5RtJ23vg28Mh54J4gOlwubmSj rgspSaCCuRh8TUBodmcx5zaYrJo6kvyGiFTPpjez28ldafbvXmx2zLu75bwVK10daPG7 VL+wTpVov9A9y4q0afS7iYeVFv2a18GCHjoTIhht6wmPY9xQH/rgUvT7t3zt+al2LmhL c/gMq6ktXVGcIBOYkW49CIadc5xbEfuj45NCeniIoPtxIeG0CsXoJztQNHpcrqMuO/Q8 cbjQ== 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:message-id:subject:cc:to:from:date :dkim-signature; bh=sRsJAg8ZUGuoEr5eig5Q2wKujidhSajKzfN34M/sB2I=; b=z5wRBgeRLTwn//ocjJoc/XPfjhm311C3XckXMd7PhSpqZrPDYsvmFkW5wufviGrR80 lXHbvHtIk/bizu61Cpen5IjEPhDqkEnyz4jU3UVXCJ2AH60avbiaLzGCNASuJyCx1Ulq tvgO+nFgjSsf3WcBf7QssUFJ5vgO82/vgqd5azdfkyPXtKzYTg9Efdke/+Jc1fb+8Qx5 pg4Tw8K2g3NoINaAMPaWSRv7k0hLbs+rbvwpKOwjdgEfzulvqvmi0K8KYYlpuT6MOdtb i2dWCYHomOL6BNBy2SMRum90nhUE7t/SC8GMljPHIWL5ElPVAolcaDG1cjCHgBGvRtXr v3Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=ydAJaAst; 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 i12si7272538otk.215.2020.01.13.13.40.48; Mon, 13 Jan 2020 13:41:01 -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=@messagingengine.com header.s=fm1 header.b=ydAJaAst; 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 S1728838AbgAMVj0 (ORCPT + 99 others); Mon, 13 Jan 2020 16:39:26 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:51789 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726778AbgAMVj0 (ORCPT ); Mon, 13 Jan 2020 16:39:26 -0500 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 8128322381; Mon, 13 Jan 2020 16:39:24 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Mon, 13 Jan 2020 16:39:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=sRsJAg 8ZUGuoEr5eig5Q2wKujidhSajKzfN34M/sB2I=; b=ydAJaAstkfI+YKCCNwYi8U CxFyVEpIAsoMkex7qaq8O9Wsq2N3KdhcwMKarx9IstyMVN03hSOTLzABp2mvnzSO vbgc/4k86evr4YW57FsQnononccYTbQGVcpACfvzsboWx9bdPeYTelDvv2gCGC2s qgZWnyCQT4DI2YsPYDIsJgsGnmk+DcRzGuh1IozOX73t8lCg/OtxO1cYj3Hd1ZDn bRAoC889OPj1/ygjI0zaUVcDCgKn8/cAnFC/THfjmcie1fkR0gmm3227UNOuQTz4 hQoIMjsKXuliUgS4l0dLGQWoGxgsEg01EP2J84HpS5XRdOGF/n2TJbrbyfw2dJqQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvdejtddgudeglecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesghdtreertddtjeenucfhrhhomhepofgrrhgv khcuofgrrhgtiiihkhhofihskhhiqdfikphrvggtkhhiuceomhgrrhhmrghrvghksehinh hvihhsihgslhgvthhhihhnghhslhgrsgdrtghomheqnecukfhppeeluddrieehrdefgedr feefnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrghrmhgrrhgvkhesihhnvhhishhisg hlvghthhhinhhgshhlrggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from mail-itl (ip5b412221.dynamic.kabel-deutschland.de [91.65.34.33]) by mail.messagingengine.com (Postfix) with ESMTPA id 676CC80063; Mon, 13 Jan 2020 16:39:22 -0500 (EST) Date: Mon, 13 Jan 2020 22:39:17 +0100 From: Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= To: Boris Ostrovsky Cc: xen-devel@lists.xenproject.org, Jan Beulich , Simon Gaiser , Juergen Gross , Stefano Stabellini , YueHaibing , open list Subject: Re: [PATCH v3] xen-pciback: optionally allow interrupt enable flag writes Message-ID: <20200113213917.GD1314@mail-itl> References: <20200111034347.5270-1-marmarek@invisiblethingslab.com> <9ea42829-6a1a-09eb-9d59-67a0487980b6@oracle.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6nSyB+bcl/pT7+kx" Content-Disposition: inline In-Reply-To: <9ea42829-6a1a-09eb-9d59-67a0487980b6@oracle.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --6nSyB+bcl/pT7+kx Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH v3] xen-pciback: optionally allow interrupt enable flag writes On Mon, Jan 13, 2020 at 04:25:02PM -0500, Boris Ostrovsky wrote: >=20 >=20 > On 1/10/20 10:43 PM, Marek Marczykowski-G=C3=B3recki wrote: > > @@ -117,6 +117,24 @@ static int command_write(struct pci_dev *dev, int = offset, u16 value, void *data) > > pci_clear_mwi(dev); > > } > > + if (dev_data && dev_data->allow_interrupt_control) { > > + if ((cmd->val ^ val) & PCI_COMMAND_INTX_DISABLE) { > > + if (value & PCI_COMMAND_INTX_DISABLE) { > > + pci_intx(dev, 0); > > + } else { > > + /* Do not allow enabling INTx together with MSI or MSI-X. */ > > + switch (xen_pcibk_get_interrupt_type(dev)) { > > + case INTERRUPT_TYPE_NONE: > > + case INTERRUPT_TYPE_INTX: > > + pci_intx(dev, 1); >=20 > If INTERRUPT_TYPE_INTX , why call pci_intx(1)? Not needed indeed. >=20 > (I think I asked this last time as well). >=20 >=20 > -boris >=20 >=20 --=20 Best Regards, Marek Marczykowski-G=C3=B3recki Invisible Things Lab A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --6nSyB+bcl/pT7+kx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAl4c44YACgkQ24/THMrX 1yz3pwf/X/M+UeKPbeYyYWubauScH6sB8Rm5cDdkP9ytWSdbqBJQnZHtKjta+gh2 yydiIOmPlVtcQeEgt+0ReyzL8bulfWPne3rRaZFFJPWxTy4KT4009UKEMAe2Rkl9 QbL8JjpmIJdzps5JacX7cYB3zn9h+p+CzgI9GUpyq9BM1JjHGWsNyIzgj6Vhcq4V n80vE9lOkUqFknyj44HVAj0AfvQ/9cB0MxalKveZB5fpc5qe8jlQwlP/6EluoEya W9LqR7KJdnK72nHi2O1Ch7YTLtaxT6anCHtzuvmef8pBhkaWjudnTd90MkEVWaDz VTuvQx2FgNnJEcekPCHg8ve+5/0z/A== =SAeV -----END PGP SIGNATURE----- --6nSyB+bcl/pT7+kx--