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 EF7B294195E for ; Fri, 13 Oct 2023 13:31:50 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=kVhHRyw3msqa2f4Zudqt42v8nQSoOimOlI27hMK/xmU=; c=relaxed/simple; d=groups.io; h=Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:References:From:Organization:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1697203909; v=1; b=plfssDce7yfv15ODiNyhFj3vXlVnWlqtN1sQ0xHmskY9d1fMxTUI4WGoS1k8TkzvW3o/wv/d M2GpHVhNtNvHRFHvuf4wuyPNuNybUc0VfFfzh2Y80C5aaJh2w95GZ533Rn3GO//zceJvcj5pbBg 37Nl6UCAPg5uTGL/rQvN3FGc= X-Received: by 127.0.0.2 with SMTP id I6lAYY7687511xUOhxOWsDAg; Fri, 13 Oct 2023 06:31:49 -0700 X-Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) by mx.groups.io with SMTP id smtpd.web11.38432.1697203908755674642 for ; Fri, 13 Oct 2023 06:31:49 -0700 X-Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-3248ac76acbso1787141f8f.1 for ; Fri, 13 Oct 2023 06:31:48 -0700 (PDT) X-Gm-Message-State: MVjzxsg7ZuVd8MrJxrFDV4rWx7686176AA= X-Google-Smtp-Source: AGHT+IHjkW1wEJ6r2m4/Puin+XiQ4ZHmBZ8v6SOz1Wa4sJ4NL53oQyiQJlo/VzUNw6v214V/YXt7hA== X-Received: by 2002:a17:906:8447:b0:9ad:fb49:4eda with SMTP id e7-20020a170906844700b009adfb494edamr21635981ejy.3.1697203886031; Fri, 13 Oct 2023 06:31:26 -0700 (PDT) X-Received: from [192.168.200.206] (83.11.27.172.ipv4.supernova.orange.pl. [83.11.27.172]) by smtp.gmail.com with ESMTPSA id cf7-20020a170906b2c700b009b28ad521f4sm12459860ejb.4.2023.10.13.06.31.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Oct 2023 06:31:25 -0700 (PDT) Message-ID: <0644c3d9-b6f4-479c-afc4-87c6bb4abecb@linaro.org> Date: Fri, 13 Oct 2023 15:31:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [edk2-devel] [PATCH edk2-platforms WIP 0/5] Provide EHCI or XHCI USB controller To: Gerd Hoffmann , devel@edk2.groups.io Cc: Leif Lindholm , Ard Biesheuvel , Jeremy Linton References: <20231013-ehci-xhci-fix-v1-0-f56f28e70e36@linaro.org> From: "Marcin Juszkiewicz" Organization: Linaro In-Reply-To: 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,marcin.juszkiewicz@linaro.org List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Language: pl-PL, en-GB, en-HK Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=plfssDce; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=linaro.org (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io W dniu 13.10.2023 o 15:24, Gerd Hoffmann pisze: >> So two solutions came to my mind: >> >> 1. rewrite DSDT generation into C > > You might want have a look at DynamicTablesPkg/ for that Wasn't is involving using ConfigurationManager? Or maybe I just had wrong assumption after reading code. >> 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? Good point. > 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. Will look. Thanks. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#109593): https://edk2.groups.io/g/devel/message/109593 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] -=-=-=-=-=-=-=-=-=-=-=-