Received: by 2002:a17:906:1917:b0:98d:b2f5:1316 with SMTP id a23csp4197713eje; Fri, 14 Jul 2023 10:38:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlFFB++etfYfERS/gpB0cfL9AojvNRh+pmlgddsQacA0Sq+W183JVEtpcJcUeYu/tPqc+A5E X-Received: by 2002:ac8:5889:0:b0:403:9d1e:ac0c with SMTP id t9-20020ac85889000000b004039d1eac0cmr7591570qta.20.1689356281204; Fri, 14 Jul 2023 10:38:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689356281; cv=none; d=google.com; s=arc-20160816; b=uAbO/crrXpcieCez5XKLp3Sb0y2hfWywvcAWb2XphDcJzmZIxPpfwaIBIUnCD9Z0fj Sn7BTyLz0dPLXswmFs4brmrUDRJ4aaYxWrmcn4T4iNWSItEtn4RVXKnAy24vsTp71wSy sIh1k8Vfh8lUWrojMtMRF1K9f2wfXEqy9/JHWPeUb63ZxLE9urAONieStCjzqOjXaL6f VH70kVF90TDNyg/o6sn54DxxycijsJAqMJcYSj4H72PC5zPQZeOxZxvIEonabr9HyHlV 9nUeflYxytYLw37s8k3TqdYBsUKB3YFdxvFSe02Z0GL6nO8vY13/O6gjlKPxGfTExXE7 l6dQ== 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=xCJgQ7ZDmctwp7f4Pja4cUFWYct6aADbndtLLY5Z7mQ=; fh=npA4ahWiYHsqkTwb/9XFgTJgByjQwm6xudqRJSK9b6s=; b=VKcZexIE4BSeUqDryZLn2sBuZVvMuNEFHVvHvVn8Yq1Pr8eMUHp71Bce7/0Y2F9NxY RcqEJpcMpGNe2Y7ZDFV1KBYYktraA1/IRQJOiNyvtNjPxxxItFk1nvsKO83m/jpNp2Qh P95v1w89A/7btNjhvM62987EDysD0Pi+gtO4zAlX5Kk/v0rqkZ3ZQGO+lHUU1RpvzJV6 MOL4CGHgyk16IPkATmXJKqAut0ky/XQK8oBCjNCSyLIOlxSy+jTrkHB14IWGS5g6g/PM y8tddT+hu5p3ifgolMQJymm5Aui2nnr08wb3vp0vu6z4pnxOPTxL9NRn2OLjQuws0znj 9wig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=sndClcbS; 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 f21-20020ac859d5000000b0040358f2660csi4899766qtf.71.2023.07.14.10.38.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Jul 2023 10:38:01 -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=sndClcbS; 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 1qKMjo-0001xC-UU; Fri, 14 Jul 2023 13:37:53 -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 1qKMjn-0001wx-Uv; Fri, 14 Jul 2023 13:37:51 -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 1qKMjm-0008Fg-8u; Fri, 14 Jul 2023 13:37:51 -0400 Received: from pps.filterd (m0353722.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36EGk8ZE012952; Fri, 14 Jul 2023 17:37:42 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=xCJgQ7ZDmctwp7f4Pja4cUFWYct6aADbndtLLY5Z7mQ=; b=sndClcbSLhSxshgh/KMccDFtddcYZmVxj66E2i9A+k5sX6RbYg4aymINtN2CRpdLIlXx Pj+Xm7rEeWjDW0yl8t0JZFVrHcO2Tza+N55BH9V5HVrSbCIRqLzwE2pMOIWGHOb4F/Wk jj8BT5eag1VofTA3ijNX4qo16sBWX4z9bPYobKW/bxAzdrz/iKqRzido/BDhYymj7KFm ONmfVOnnkJ6yScRctrptqvtlOaFeVdv29zwvQY0kTzSo2FzalEedGlAfcOSOjIjb5MzN qqI0bKF7ST4I4Ko/FMnBNbYGF31Vrwfnhp+v5w/WnMShsP4LbPWQ/MHkGN3sfbbaEBf6 aQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rua5uhbk0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Jul 2023 17:37:41 +0000 Received: from m0353722.ppops.net (m0353722.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 36EHQjfs003967; Fri, 14 Jul 2023 17:37:41 GMT Received: from ppma12.dal12v.mail.ibm.com (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rua5uhbjf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Jul 2023 17:37:41 +0000 Received: from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1]) by ppma12.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 36ED9O1t007309; Fri, 14 Jul 2023 17:37:40 GMT Received: from smtprelay02.wdc07v.mail.ibm.com ([172.16.1.69]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 3rtpvs2a0q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Jul 2023 17:37:40 +0000 Received: from smtpav03.wdc07v.mail.ibm.com (smtpav03.wdc07v.mail.ibm.com [10.39.53.230]) by smtprelay02.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 36EHbdJu393752 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 14 Jul 2023 17:37:39 GMT Received: from smtpav03.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8996B5805A; Fri, 14 Jul 2023 17:37:39 +0000 (GMT) Received: from smtpav03.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9880058054; Fri, 14 Jul 2023 17:37:38 +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:37:38 +0000 (GMT) Message-ID: <1a394fc6-4a64-5e00-5631-eb5a6aa4ce59@linux.ibm.com> Date: Fri, 14 Jul 2023 13:37:38 -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> 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-GUID: u0yy88JU8vZuSZDnSPmToMsH-YRRnbW_ X-Proofpoint-ORIG-GUID: 8XwTbcpYsaHdloLntLUAvpfR-E858SXA 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 lowpriorityscore=0 suspectscore=0 impostorscore=0 phishscore=0 spamscore=0 bulkscore=0 mlxlogscore=999 adultscore=0 clxscore=1015 malwarescore=0 priorityscore=1501 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307140156 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, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: s2DZ/1/c6d/h 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. >> >> 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. > >> >> >>