Received: by 2002:a17:906:1917:b0:98d:b2f5:1316 with SMTP id a23csp4200636eje; Fri, 14 Jul 2023 10:44:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlG4JGsLBVesuMAeJWcjwT5PF7U5HLToEPRcHY7BHeya02Q1SmzFW0gJWkye/eOTD6AmQhRy X-Received: by 2002:ac8:5792:0:b0:3fd:ed14:6eb9 with SMTP id v18-20020ac85792000000b003fded146eb9mr4253836qta.11.1689356653234; Fri, 14 Jul 2023 10:44:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689356653; cv=none; d=google.com; s=arc-20160816; b=bKr7+aBnL8J7gG+9haXRyaSasreOWZqZPyDM7ZdyYD3hN/+pKYSgor5yHufrtb/pdN yWdn5cx9hhLKy9TGVbQNd/8wpFhy7nTl5uJdsSXF1pSkmOK+fZMQQ7M4BZ/3DjsU0aNC BqLEjABi4gUZ7OmkxapNYKBDpeuYrzpaYbUKlr3iZ9pDj0VcQtnVKyEJdtiCVYyAw7WC O9d27sjrzalPvh6do3utqMuYWTYjQqd+FjCb0886CpEBSRbsV/VchIQsEp417UG/jNAL XRx5TlCrHsmkIXnPKXh4JN7yCfbY0TApTDAalITOnU5F+GDTLQdeNXayJovmGsAt/8dr CuOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=OuHHw+xOK8VWmOvsMM5THMm6AYVRy9oPgJUwufUy/NA=; fh=npA4ahWiYHsqkTwb/9XFgTJgByjQwm6xudqRJSK9b6s=; b=PI+3+sXcNkSSaL7bShdVv1l8d/cF3zEBLjecIrJbB8+H7wNDqlGs+aGfA1eAZ15sXw Dv1jQYfVGzSqxg0iznZPUkJASB83oFfIJ3zJTu7/xUexP+ux5pW33fdlxTioFBAQdCxe 9PUdnlLMdf4AsbGwQvvLrk1s8/SYaqxcw7IcB5as215L2LQlwOWj6qC4l7RbiClnoYJ5 xZFuUbwUwdVY3DHB7kFZFLX0SaEkl5UWEMBbxFsgAQdqLQ+O2DcSlHF2EocSAM+Fs7z9 GLzO0rri8GjVwavcgBrKzpsYyjod/faCfGdNrLpmtLGgtNEy83s+SJ/ibxW4zofxYuZt SF/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=Ra+HS7Rp; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id i19-20020ac85e53000000b00403b2f3412bsi4711142qtx.758.2023.07.14.10.44.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Jul 2023 10:44:13 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=Ra+HS7Rp; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qKMpG-0004Ul-Pq; Fri, 14 Jul 2023 13:43:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qKMpE-0004Tr-St; Fri, 14 Jul 2023 13:43:28 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qKMoz-0002kW-Sq; Fri, 14 Jul 2023 13:43:28 -0400 Received: from pps.filterd (m0356516.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36EHdlqg011014; Fri, 14 Jul 2023 17:43:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=OuHHw+xOK8VWmOvsMM5THMm6AYVRy9oPgJUwufUy/NA=; b=Ra+HS7RpX7GzUJoyFXvSseQnR7ZCT+B5xMFhq0XtDYEcD7X953Pvk1RvfzuYoTkxP7P0 PVPNwM01BNtsI6Xp1oqV5/vlVNah4KVqw6hVHS4gbYwq41RpM53WIi8NL58t/JCCsMyV VyxVbDSK6Xudo4XgGvm8HakywlCDiC1fF0mTz65HNBrNqHRZ8ZCc4W7AwBG+onJAlN5K b+CdbqGm7W0uWFz5XdqWCdC5bunWWGZbjLN/Ccf8LDs162kneMPQzmD/NnFaQF5fm133 lkzKP/t1Dn+rWqUkxaXZymbc7SGF9uFJ3Mrm9xAST2OJq+g1M13uyIgT1muXMEfhucQA xg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rua61h08f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Jul 2023 17:43:08 +0000 Received: from m0356516.ppops.net (m0356516.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 36EHh819020821; Fri, 14 Jul 2023 17:43:08 GMT Received: from ppma04dal.us.ibm.com (7a.29.35a9.ip4.static.sl-reverse.com [169.53.41.122]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rua61h084-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Jul 2023 17:43:08 +0000 Received: from pps.filterd (ppma04dal.us.ibm.com [127.0.0.1]) by ppma04dal.us.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 36EGMDUb008399; Fri, 14 Jul 2023 17:43:07 GMT Received: from smtprelay04.wdc07v.mail.ibm.com ([9.208.129.114]) by ppma04dal.us.ibm.com (PPS) with ESMTPS id 3rtq33qfvs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Jul 2023 17:43:07 +0000 Received: from smtpav03.wdc07v.mail.ibm.com (smtpav03.wdc07v.mail.ibm.com [10.39.53.230]) by smtprelay04.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 36EHh6Wb43057490 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 14 Jul 2023 17:43:06 GMT Received: from smtpav03.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 12AE758054; Fri, 14 Jul 2023 17:43:06 +0000 (GMT) Received: from smtpav03.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 225095805A; Fri, 14 Jul 2023 17:43:05 +0000 (GMT) Received: from [9.47.158.152] (unknown [9.47.158.152]) by smtpav03.wdc07v.mail.ibm.com (Postfix) with ESMTP; Fri, 14 Jul 2023 17:43:05 +0000 (GMT) Message-ID: Date: Fri, 14 Jul 2023 13:43:04 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v2 09/11] tpm_tis_sysbus: move DSDT AML generation to device Content-Language: en-US To: Joelle van Dyne Cc: qemu-devel@nongnu.org, Shannon Zhao , "Michael S. Tsirkin" , Igor Mammedov , Ani Sinha , Peter Maydell , Xiaojuan Yang , Song Gao , Stefan Berger , "open list:ARM ACPI Subsystem" References: <20230714070931.23476-1-j@getutm.app> <20230714070931.23476-10-j@getutm.app> <1a394fc6-4a64-5e00-5631-eb5a6aa4ce59@linux.ibm.com> From: Stefan Berger In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: 2ixc_uyBICGTP7rDDiwYChPXUf3WTvmo X-Proofpoint-GUID: DMpeAsoLwCwFehHS2BsnPKO9LYp97sHJ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-14_08,2023-07-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 spamscore=0 lowpriorityscore=0 malwarescore=0 adultscore=0 bulkscore=0 priorityscore=1501 mlxscore=0 suspectscore=0 clxscore=1015 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307140160 Received-SPF: pass client-ip=148.163.158.5; envelope-from=stefanb@linux.ibm.com; helo=mx0b-001b2d01.pphosted.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.091, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: vn6Wh89Bv5us On 7/14/23 13:39, Joelle van Dyne wrote: > On Fri, Jul 14, 2023 at 10:37 AM Stefan Berger wrote: >> >> >> >> On 7/14/23 13:29, Joelle van Dyne wrote: >>> On Fri, Jul 14, 2023 at 9:19 AM Stefan Berger wrote: >>>> >>>> >>>> >>>> >>>> I don't know whether we would want multiple devices. tpm_find() usage is certainly not prepared for multiple devices. >>> Sorry, "multiple TPM interfaces" here does not mean "at the same >>> time". Will clarify the description. >>> >>>> >>>> >>>> Good for the consolidation. >>>> >>>> >>>> Does moving the TIS to a different address help on aarch64? >>> That was the first thing we tried and no it doesn't help. >> >> I would remove it if we don't have a known alternative address that makes it work. If we do, I think we should document it in tpm.rst. > "It" is referring to tpm-tis-device? Note that it does work fine with Linux VMs. yes, tpm_tis_sysbus and I know it works with Liunux but I see this discussion here around Win 11 on aarch64. Why do we need to user another address than the standard address if for Win 11 on aarch64 it doesn't get it to work. > >> >> >>>> >>>> Can the size really be an option? I don't see it useful and if one gave the wrong size it may break things. >>> It was added for consistency (otherwise we have to determine the size >>> by looking at the interface everywhere). Also, it is possible for the >>> size to be larger than the constant. For example, Apple Silicon uses >>> 16KiB page sizes and we may decide to force the device to be 16KiB >>> aligned (not sure if this is needed yet while we still track down why >>> the dual mapping was not working). In that case, we would need to >>> inform the OS of the true region size to prevent any overlap issues. >>> Both baseaddr and size should be provided only by the plug handler in >>> the virt machine, otherwise things may break even if we get rid of >>> size and have just an incorrect baseaddr. >>> >>>> >>>> >>>>