From patchwork Wed Dec 27 12:35:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Patchwork-Id: 183470 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp1405633dyb; Wed, 27 Dec 2023 04:40:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IH7LLABKIDGwcUp5mKIh4J0avdUYdO7m0GxWkTG6Sibav+ogF3MFEby+AYdwzDnHQQVyOwF X-Received: by 2002:a05:6870:2114:b0:204:2e89:feb7 with SMTP id f20-20020a056870211400b002042e89feb7mr6805536oae.54.1703680838266; Wed, 27 Dec 2023 04:40:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703680838; cv=none; d=google.com; s=arc-20160816; b=ySwxkK7FBlDyWwLmnWBFC26j1iq0RlFXA6TJmzAzZW3Aln28qi/APvAfuXPDr7YdoG 6k6fWxEZhceTANPmn8I4J4D2GhGexVlDntcggSZeFdyLBjNy6lkIPWC16koGTxw1zSt0 0zoPlOhoTdUs12oQ/j4JkMOOVGgDzAZonNg6cbe++a5fv1Hk6tARiQ3MZ2fTZKb2U4UL 72MS36i5eqb17LDFI4tha7LYFje7EIIP7xOY0WO6UTOxAKB08eDKmzj95XmjPTYhjaeY OegXNk1YdWPMPS+tOepRj8mu8OzQz3q8lGdO61aZD1uqD/g9ZHl32OMqU63WY5Tz7M4p nq1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=x5SuUtEIDWYnoj6R4WD//+FxMM5SByZyj2Ua8e/ZLYY=; fh=YLqONTT3zXOTgNWu2CDtNI+r5pIY9DcACBUu9uzqnaQ=; b=lWvOkbvsCNL7PrIe0Db7kME6Put14+nhFglNzE4F7q8nR8wa7JRIfbdhfpYxK+waaZ gjphQpNb0d7snbTB4AhcTaHMjHzazxob9X0F6E+aZsZY53y6AGvon1bCF0GvQGXYVkp5 qYQI2WNJonLJSr0GoyR2+RmoHRmyKDIekyDfU2XQKNNKzhkCp88i7qUP59feFDFvyeS/ yYBehxMR1VCxcDOEqzbOiG+PVMCkG5A4n5YLGvRcmDOxgr7M1xBTjQY3LqkNtq5J0M4y hSjEmW0FaiGZpI6CDmjJJIo4EdvQ3dg4oUuaLx1c5kTklehT6m1dG8G6jgjvjzqEPZVl J75A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=0tt9ZmqE; spf=pass (google.com: domain of linux-kernel+bounces-12023-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12023-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id qr13-20020a05620a390d00b0078128902905si12624260qkn.295.2023.12.27.04.40.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 04:40:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12023-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=0tt9ZmqE; spf=pass (google.com: domain of linux-kernel+bounces-12023-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12023-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 10DA51C22703 for ; Wed, 27 Dec 2023 12:40:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E0EE46457; Wed, 27 Dec 2023 12:39:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="0tt9ZmqE" X-Original-To: linux-kernel@vger.kernel.org Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 88BF4446D2; Wed, 27 Dec 2023 12:39:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1703680750; bh=Cdexw2n4HbQxTZM8qiQfp93a3YFILA6CwYD1mIyyWME=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0tt9ZmqETf0TBxM2J2UgjYJ8+xcebCzI4pqoSgsv3BuExqU1j8K+cYcT6dsVJ0nq4 ckS+XOL7dOO2OGUhPH9IIQR8qo5IFunanMt/IqTeS5evLbOGHnVqhtALgkEds0ZGRl CKE4LmdqBgwErQAKBV8x16y8+t0hu46j/EelxK01G7349ApzDUAXOR/4RnvJhYCoJz GT2DDcg3/AOARyp1I5xqPpVchcsaf4tJ+rMoIRIIGzRvEF4UDQsl+fp0l+UwShRj0e ppbf1XUFggpGPjpVQ4C3uix5i/HmGQ9cK1SaCBlC4yZIUNVah/WqiuCg2VUU+hx5/S Njam0JfivD26g== Received: from localhost.localdomain (zone.collabora.co.uk [167.235.23.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 14E0937813EA; Wed, 27 Dec 2023 12:39:04 +0000 (UTC) From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= To: Shuah Khan , Greg Kroah-Hartman , Bjorn Helgaas Cc: kernelci@lists.linux.dev, kernel@collabora.com, Tim Bird , linux-pci@vger.kernel.org, David Gow , linux-kselftest@vger.kernel.org, Rob Herring , Doug Anderson , linux-usb@vger.kernel.org, Saravana Kannan , Dan Carpenter , Guenter Roeck , devicetree@vger.kernel.org, =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , linux-kernel@vger.kernel.org Subject: [RFC PATCH v3 3/3] kselftest: devices: Add sample board file for XPS 13 9300 Date: Wed, 27 Dec 2023 09:35:02 -0300 Message-ID: <20231227123643.52348-4-nfraprado@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231227123643.52348-1-nfraprado@collabora.com> References: <20231227123643.52348-1-nfraprado@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786438838675586031 X-GMAIL-MSGID: 1786438838675586031 Add a sample board file describing the file's format and with the list of devices expected to be probed on the XPS 13 9300 machine as an example x86 platform. Test output: TAP version 13 Using board file: boards/Dell Inc.,XPS 13 9300.yaml 1..22 ok 1 /pci-controller/14.0/usb2-controller/9/camera.device ok 2 /pci-controller/14.0/usb2-controller/9/camera.0.driver ok 3 /pci-controller/14.0/usb2-controller/9/camera.1.driver ok 4 /pci-controller/14.0/usb2-controller/9/camera.2.driver ok 5 /pci-controller/14.0/usb2-controller/9/camera.3.driver ok 6 /pci-controller/14.0/usb2-controller/10/bluetooth.device ok 7 /pci-controller/14.0/usb2-controller/10/bluetooth.0.driver ok 8 /pci-controller/14.0/usb2-controller/10/bluetooth.1.driver ok 9 /pci-controller/2.0/gpu.device ok 10 /pci-controller/2.0/gpu.driver ok 11 /pci-controller/4.0/thermal.device ok 12 /pci-controller/4.0/thermal.driver ok 13 /pci-controller/12.0/sensors.device ok 14 /pci-controller/12.0/sensors.driver ok 15 /pci-controller/14.3/wifi.device ok 16 /pci-controller/14.3/wifi.driver ok 17 /pci-controller/1d.0/0.0/ssd.device ok 18 /pci-controller/1d.0/0.0/ssd.driver ok 19 /pci-controller/1d.7/0.0/sdcard-reader.device ok 20 /pci-controller/1d.7/0.0/sdcard-reader.driver ok 21 /pci-controller/1f.3/audio.device ok 22 /pci-controller/1f.3/audio.driver Totals: pass:22 fail:0 xfail:0 xpass:0 skip:0 error:0 Signed-off-by: NĂ­colas F. R. A. Prado --- Changes in v3: - Added this commit .../devices/boards/Dell Inc.,XPS 13 9300.yaml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 tools/testing/selftests/devices/boards/Dell Inc.,XPS 13 9300.yaml diff --git a/tools/testing/selftests/devices/boards/Dell Inc.,XPS 13 9300.yaml b/tools/testing/selftests/devices/boards/Dell Inc.,XPS 13 9300.yaml new file mode 100644 index 000000000000..ff932eb19f0b --- /dev/null +++ b/tools/testing/selftests/devices/boards/Dell Inc.,XPS 13 9300.yaml @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# This is the device definition for the XPS 13 9300. +# The filename "Dell Inc.,XPS 13 9300" was chosen following the format +# "Vendor,Product", where Vendor comes from +# /sys/devices/virtual/dmi/id/sys_vendor, and Product comes from +# /sys/devices/virtual/dmi/id/product_name. +# +# See google,spherion.yaml for more information. +# +- type: pci-controller + # This machine has a single PCI host controller so it's valid to not have any + # key to identify the controller. If it had more than one controller, the UID + # of the controller from ACPI could be used to distinguish as follows: + #acpi-uid: 0 + devices: + - path: 14.0 + type: usb-controller + usb-version: 2 + devices: + - path: 9 + name: camera + interfaces: [0, 1, 2, 3] + - path: 10 + name: bluetooth + interfaces: [0, 1] + - path: 2.0 + name: gpu + - path: 4.0 + name: thermal + - path: 12.0 + name: sensors + - path: 14.3 + name: wifi + - path: 1d.0/0.0 + name: ssd + - path: 1d.7/0.0 + name: sdcard-reader + - path: 1f.3 + name: audio