Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2917995pxv; Mon, 12 Jul 2021 05:13:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiUSTbj+IzMN/jIS2IHCX9uEAiVrybu3Cyc6qe6heTYtIQvM9y8B4uSql9kI212/9kP1J7 X-Received: by 2002:a17:906:478b:: with SMTP id cw11mr51123752ejc.241.1626092015054; Mon, 12 Jul 2021 05:13:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626092015; cv=none; d=google.com; s=arc-20160816; b=C+hu5Gehbho+tJX3XZdw70gLNRiOHHvqXIm8gOjAjJNj24M0sdqXefTZ/b11Lg5+Ju pbD5wev4Jvk0nxC93JIqHEiDH+gPDOi04b21LPR41J/CpvunluTuUgi/RBuya7vplo5H flka/VcZjFRzMNa3ornKpvs4Fy0K8XWn4bmzLZBRGb5AhgFH49OgauDrgWQTBIfvpjBT 3+2b3e1ZFnOVPF0Gqch/AF+IE4w6HN0xDXBUlttlcFoASwYlz9fRcjgW2vmXjDnqxC/Z rasHc0/ZBv0oFHvgGR7pXBnsFG+SO5AZ7dtPkhMTdg8/wFzO9cW3hDYNtCc6RXSUXSKI LqGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=/we3ZewHNJG5Z4IRTt12GtlMv1E2YkoJ1f/3ah8dxi0=; b=CKIZuJtIX+DxiDtVnCR5f4jrokAagPh+lrFZH6mWZjGtJvG3BBdytp6Kj77VdlY0cC dsqFnMil/NfavejfzBEL5GDevmZxfhW2f0yQGGNGcNiKY3x4G4i+6o6ev9+JeR/H+28j YfGY/Uc9t3Aj12WZzYlMnsTUdHZQRba6skOcFP38BChkQ+GfSlI/u45m3Ar63/AXzpK+ JU+6S+cniE2LYNph2auMT9HkQkLN5LzgJ290p+/hgaqPJRrPk+zKuDjO24yeyqv2Cv9r o7PTQGKzObYG7IB3Nh+2WU8qZgUKN7Ug2rb9kPyn9fTlfUs46hJ+BD2alKGURr9oNEBk pdag== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m24si5317311edv.366.2021.07.12.05.13.11; Mon, 12 Jul 2021 05:13:35 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233704AbhGLMOx (ORCPT + 99 others); Mon, 12 Jul 2021 08:14:53 -0400 Received: from mga14.intel.com ([192.55.52.115]:52381 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230074AbhGLMOw (ORCPT ); Mon, 12 Jul 2021 08:14:52 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10042"; a="209785552" X-IronPort-AV: E=Sophos;i="5.84,232,1620716400"; d="scan'208";a="209785552" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jul 2021 05:12:03 -0700 X-IronPort-AV: E=Sophos;i="5.84,232,1620716400"; d="scan'208";a="652927011" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jul 2021 05:12:00 -0700 Received: from andy by smile with local (Exim 4.94.2) (envelope-from ) id 1m2umv-00CDOQ-W1; Mon, 12 Jul 2021 15:11:53 +0300 Date: Mon, 12 Jul 2021 15:11:53 +0300 From: Andy Shevchenko To: Henning Schild Cc: "Enrico Weigelt, metux IT consult" , Bjorn Helgaas , Wolfram Sang , Jean Delvare , Lee Jones , Tan Jui Nee , Jim Quinlan , Jonathan Yong , Bjorn Helgaas , linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-pci@vger.kernel.org, Jean Delvare , Peter Tyser , hdegoede@redhat.com Subject: Re: [PATCH v1 3/7] PCI: New Primary to Sideband (P2SB) bridge support library Message-ID: References: <20210309014221.GA1831206@bjorn-Precision-5520> <20210309094252.396b7f2d@md1za8fc.ad001.siemens.net> <3f33a178-3002-e93e-89f1-8cf05097da25@metux.net> <20210406154001.3eec0698@md1za8fc.ad001.siemens.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210406154001.3eec0698@md1za8fc.ad001.siemens.net> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 06, 2021 at 03:40:01PM +0200, Henning Schild wrote: > Am Fri, 2 Apr 2021 15:09:12 +0200 > schrieb "Enrico Weigelt, metux IT consult" : > > > On 09.03.21 09:42, Henning Schild wrote: > > > > > The device will respond to MMIO while being hidden. I am afraid > > > nothing stops a collision, except for the assumption that the BIOS > > > is always right and PCI devices never get remapped. But just > > > guessing here. > > > > What could go wrong if it is remapped, except that this driver would > > write to the wrong mmio space ? > > > > If it's unhidden, pci-core should see it and start the usual probing, > > right ? > > I have seen this guy exposed to Linux on coreboot machines. No issues. > But i can imagine BIOSs that somehow make use of the device and assume > it wont move. So we would at least need a parameter to allow keeping > that device hidden, or "fixed" in memory. I'm wondering if they have pin control device described in the ACPI. If so, how in that case you prevent double initialisation? We would need to check both: P2SB and ACPI tables. Basically if we enable P2SB as a PCI device we may create a corresponding driver (somewhere under drivers/pci or PDx86) and check in its probe that ACPI device is also present and functional. -- With Best Regards, Andy Shevchenko