From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1C1DAC6FA99 for ; Wed, 8 Mar 2023 00:32:50 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A054C85813; Wed, 8 Mar 2023 01:32:47 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="oKD3jJ2o"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 03C0281B42; Wed, 8 Mar 2023 01:32:46 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by phobos.denx.de (Postfix) with ESMTP id C37AB859E3 for ; Wed, 8 Mar 2023 01:32:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=stcarlso@linux.microsoft.com Received: from STCARLSO-0732.corp.microsoft.com (unknown [131.107.159.124]) by linux.microsoft.com (Postfix) with ESMTPSA id F073A20C14D8 for ; Tue, 7 Mar 2023 16:32:38 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com F073A20C14D8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1678235559; bh=6nmQqOETZDVHglZTcBixU627mhWfBjKu6M83/hOzQtg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=oKD3jJ2od08c3zZjyoA9De0eoMVUjIXK3/K1j/BriVlA7tHiA2s2G0SCLFWYV1DPv KBuUdkjbyMf4lTxOiUwrRDmgPM7nT1myWBRyyrHy9MFtNrM35JUu08e82/KEaWOaLQ sbYMTQ/wEuCrAAgEv8FKm+KYAdTBkSV3rvoCqdlU= From: stcarlso@linux.microsoft.com To: u-boot@lists.denx.de Subject: [PATCH 2/3] drivers: pci: sandbox: Add stub sandbox PCI MPS support Date: Tue, 7 Mar 2023 16:32:33 -0800 Message-Id: <20230308003234.465014-3-stcarlso@linux.microsoft.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230308003234.465014-1-stcarlso@linux.microsoft.com> References: <20230308003234.465014-1-stcarlso@linux.microsoft.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean From: Stephen Carlson Reports the sandbox swapcase PCI Express device to support a 256 byte Maximum Payload Size for MPS tuning tests. Signed-off-by: Stephen Carlson --- drivers/misc/swap_case.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/misc/swap_case.c b/drivers/misc/swap_case.c index 7093ad1cd4..ee5c12bd0a 100644 --- a/drivers/misc/swap_case.c +++ b/drivers/misc/swap_case.c @@ -165,6 +165,9 @@ static int sandbox_swap_case_read_config(const struct udevice *emul, case PCI_CAP_ID_EXP_OFFSET + PCI_CAP_LIST_NEXT: *valuep = PCI_CAP_ID_MSIX_OFFSET; break; + case PCI_CAP_ID_EXP_OFFSET + PCI_EXP_DEVCAP: + *valuep = PCI_EXP_DEVCAP_PAYLOAD_256B; + break; case PCI_CAP_ID_MSIX_OFFSET: if (sandbox_swap_case_use_ea(emul)) *valuep = (PCI_CAP_ID_EA_OFFSET << 8) | PCI_CAP_ID_MSIX; -- 2.25.1