Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp252152pxv; Thu, 15 Jul 2021 03:32:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcZ73sRfxlExmr8Vda0qJWo6dtU/nfnXH5m6Cf5B39qSHjHaIs00UwDclBBcO5fayNeWnC X-Received: by 2002:a02:9582:: with SMTP id b2mr3363397jai.131.1626345160326; Thu, 15 Jul 2021 03:32:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626345160; cv=none; d=google.com; s=arc-20160816; b=TABMMpyxJse6q7iicq5JyQDMop0xsiblGEdvmfjhnV9NL1G5XijUPhy9XQVaOwcXEZ fO7ZtTREHyvQtPOVmxEO86yDHIIFkE+EEL0t1ZgjHMANtHuVnZVR15D4a5YcIv+bkl9X lWD9933zUYv9/3yi+bmBCly/A5DgGUg/f4E7l4F9f8QZ0MGoFQFuq6Ab55/kXtUw9Fft R0pLx1jzw8vCRsfgRGVaNqAOzwst/JxmvNJiVO99zVIe4m7wBj89KVXKZUaQ7hFRccNg dYBU879KQqAc1fiupVjU78Qsf4x1r5XVVrqK7Qm0sqfzJRm4PpVrOGImt7QQ9jULdDUU ZY3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=W8D9wkVQjCjpsTZI0LeYY1YMvGOjfr6Eirr0wGuU3zw=; b=hjc0QnHPUN24jxJcUFiMUpa0T+0m3taELxHbTwDzxnzHp+Q6mLqxZj8anvXXXO+pII Td0BBFyRZXYNcrbt7xjg85z8lPrCXrAUGhnGyCkwXQa1EjBGbPS5aYVXhl67sJ2BpC7M 8aP1j5vxEFfWtxZTxm31HpDm++F2+faKqqM1evPLKCqE/MEK5mW8ZPnwUuukOaWMl3LZ kfDJOSbJmXKqF+rT/f5GuAlF6C0I5tPBrbteI5gF2B2O3cWDdMJnmICMgHY+p/2DKtt3 dBrBuq4NfL7vVI4cBcSoeS3BLWN7wgBM226LYe8VIRrETTDb4Dxjw3lBtUSS5dqCoMJe Fcbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=APjYsBSz; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=j2sex9s0; 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 o11si6223477ilg.108.2021.07.15.03.32.28; Thu, 15 Jul 2021 03:32:40 -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; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=APjYsBSz; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=j2sex9s0; 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 S234530AbhGOHhw (ORCPT + 99 others); Thu, 15 Jul 2021 03:37:52 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:49702 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229620AbhGOHhw (ORCPT ); Thu, 15 Jul 2021 03:37:52 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 30FC22278A; Thu, 15 Jul 2021 07:34:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1626334498; h=from:from:reply-to: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=W8D9wkVQjCjpsTZI0LeYY1YMvGOjfr6Eirr0wGuU3zw=; b=APjYsBSzgmbv27H6ngdklOnm9sX810tgnWNVSpE3s+unB4aMNPcDpcvOGlmEiHo/xnNGMQ zHqMGpiKfxahJdarGVTSMzzuZ5Mno14SlVZBzIxWzIj5dZLHjykzt6z2uVeiAJ0imSm3GT /OKEyKp9e/6m+n19R8VOa9w1vzg4ij8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1626334498; h=from:from:reply-to: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=W8D9wkVQjCjpsTZI0LeYY1YMvGOjfr6Eirr0wGuU3zw=; b=j2sex9s0TGkB2tMcV8yUueddvu5574zDPkwrO+mqwSFNEYFpeaXk1dPvZEm49EyIY+DJOS qzgb5Rk+EfrwCGCA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id D1CFA13C2C; Thu, 15 Jul 2021 07:34:57 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id T82EMSHl72APZgAAMHmgww (envelope-from ); Thu, 15 Jul 2021 07:34:57 +0000 Date: Thu, 15 Jul 2021 09:34:55 +0200 From: Joerg Roedel To: "Rafael J. Wysocki" Cc: Joerg Roedel , Bjorn Helgaas , "Rafael J . Wysocki" , Len Brown , Linux PCI , ACPI Devel Maling List , Linux Kernel Mailing List Subject: Re: [PATCH v2 1/2] PCI/APCI: Move acpi_pci_osc_support() check to negotiation phase Message-ID: References: <20210714085512.2176-1-joro@8bytes.org> <20210714085512.2176-2-joro@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rafael, On Wed, Jul 14, 2021 at 02:04:17PM +0200, Rafael J. Wysocki wrote: > > decode_osc_support(root, "OS supports", support); > > - status = acpi_pci_osc_support(root, support); > > - if (ACPI_FAILURE(status)) { > > - *no_aspm = 1; > > > > - /* _OSC is optional for PCI host bridges */ > > - if ((status == AE_NOT_FOUND) && !is_pcie) > > + if (!pcie_ports_disabled) { > > If pcie_ports_disabled is set, we don't want to request any control > from the platform firmware at all and, specifically, we don't want to > evaluate _OSC with the OSC_QUERY_ENABLE clear in > capbuf[OSC_QUERY_DWORD]. > > I'm not sure how this is achieved after your changes. Yeah, it isn't. The acpi_pci_osc_control_set() function will always do an _OSC call with OSC_QUERY_ENABLE clear. I will come up with a new approach. Thanks, Joerg