From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 673E9D81096 for ; Fri, 13 Oct 2023 13:24:58 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=+hslS6lFvPGU+d3AlxbhVCU7+uedTa5duAur90Sy9SI=; c=relaxed/simple; d=groups.io; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Disposition; s=20140610; t=1697203497; v=1; b=fQFi6zGjAF9euQg6IRmHzC67E7R1N3JdY7agoUXnthkNk7/yMRP30UaEHToLsy59HgWz8oIs AHAzPvoFEuEXWhIvDfYaH/iUEWGJFiai1OM03powz5Nx7309WXKmH9c0HkWQcj3gqvnpOnwduRU iY12/DVHLCm409sCMWBJ2XHA= X-Received: by 127.0.0.2 with SMTP id aMwCYY7687511x6MLWit4eR1; Fri, 13 Oct 2023 06:24:57 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web11.38256.1697203495607937330 for ; Fri, 13 Oct 2023 06:24:56 -0700 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-316-3JxPxkLQPYqs3VcPR1GJ-g-1; Fri, 13 Oct 2023 09:24:49 -0400 X-MC-Unique: 3JxPxkLQPYqs3VcPR1GJ-g-1 X-Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 685111029F47; Fri, 13 Oct 2023 13:24:49 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.193.45]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3540A492BFB; Fri, 13 Oct 2023 13:24:49 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id E624A18011F3; Fri, 13 Oct 2023 15:24:47 +0200 (CEST) Date: Fri, 13 Oct 2023 15:24:47 +0200 From: "Gerd Hoffmann" To: devel@edk2.groups.io, marcin.juszkiewicz@linaro.org Cc: Leif Lindholm , Ard Biesheuvel , Jeremy Linton Subject: Re: [edk2-devel] [PATCH edk2-platforms WIP 0/5] Provide EHCI or XHCI USB controller Message-ID: References: <20231013-ehci-xhci-fix-v1-0-f56f28e70e36@linaro.org> MIME-Version: 1.0 In-Reply-To: <20231013-ehci-xhci-fix-v1-0-f56f28e70e36@linaro.org> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,kraxel@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: Jy3chrapMVqUD95wpN1MoUJDx7686176AA= Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=fQFi6zGj; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=redhat.com (policy=none) Hi, > So two solutions came to my mind: > > 1. rewrite DSDT generation into C You might want have a look at DynamicTablesPkg/ for that > 2. provide EHCI/XHCI in SSDT table instead of DSDT Should work, except that I'd suggest to worry about xhci only. ehci never actually worked anyway, so why advertise it to the OS in the first place? 3. Add a _STA AML function to the XHCI DSDT description, which is able to figure whenever XHCI is present. We had that in qemu years ago, before switching to full DSDT generation, where the _STA functions checked some bit in PCI config space of the ISA bridge to figure whenever specific isa devices (floppy, serial/parallel port) are present or not. HTH & take care, Gerd -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#109592): https://edk2.groups.io/g/devel/message/109592 Mute This Topic: https://groups.io/mt/101938735/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-