Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp544710rdh; Wed, 14 Feb 2024 04:56:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUIyzxLdwpGvfBfxNCvImMYvSCl9NWgW5MQoIAnZvMU0GZAXmymTWuXCaC67Lnw1ryII5LeNqnDedwlNoMtPY/FOCCB83op6Lct91U16A== X-Google-Smtp-Source: AGHT+IHKQBApJLtPo3Eq+X8CS37fyL4SAogG+CsTbvBLaE4gCOGB4J/g/BbYShVUMnV4ObUQ3Sbx X-Received: by 2002:a17:906:8d7:b0:a3d:2356:c582 with SMTP id o23-20020a17090608d700b00a3d2356c582mr1656994eje.48.1707915394734; Wed, 14 Feb 2024 04:56:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707915394; cv=pass; d=google.com; s=arc-20160816; b=Gl0Jj+7jLoZXn4aAHAebK4v6i4ZBm6EBS9HVjx9ChobIzLVCl0DyhsPw9nujgJ/4Z3 ryG5qg2bN8LJMtxuD0BlLTZe7Wz9T0EnAdTZtKX46ffRr2dt8JB/NT43CHFKfTwC7tlz wj7ePXAh5Xqjus55qIini/iYebUNJVYYDJIW7Ax7gCH9zDe3SgmC66CnYnZ2KgqqFkeg vGEIZczSTcKHXAaP1jfEP8tbOZIoA05Pnb1gNm3hPXFt18ofvFYoyUsrcF8+63Bk/xTC 0bpm4zu5ScVkXU7lu3F25H2g2JvEkMhmrB1CmhZwxl+kN5mscjGLamO4eBpKsWdtbRTX vf3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=IqeTyFlzG5Lbc99OW9HRKNNfQNLD+RGgkxJvm4oKLAI=; fh=5Jr2wKBIOsEIrU88BvG9dKoePBI020tuR71/l/Z5gAA=; b=TasZCb9MheGHGYniwulbA4sDzz3m1yWH6OLy8BZ8cIixx0KVdKbChemh23w83j5KCi wfKuzVrzHqRuQJbUD3TE21PRQkOOoJ2u3iW1l1+9u0EENqo7Vn75F5fq9W0CsUjaJRt0 pCpwrjTS/NgyKS9DMjZc6At78sLV5qlcQGzAnxx2GZHyARpwLDhzoqKIjMq9/JijLkWq oY/aD5z7nTfdP7bV52tykMxqV9dgr4C7x3NS4bM6OsVLZqjCS6Hw67x0jMmczps9WwXr O5Pdb9I2MUZMGHti8kS/BXr88GcysjQY+fFRj4jJDiiKdew3QeZt9+NKUEA+tGWG/ohP wTRg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=EFc3LRbK; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-65231-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65231-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com X-Forwarded-Encrypted: i=2; AJvYcCXy7tE0YVmVgYZ9iXMDnVGV/Pfh7BUK6c3fc7+KQ+j26deu3oosQgkwBfB+5pn/9ei7Q1eIa1gspFwpQuevmg2PuOQeyRwEB1ohpKMOVA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id l13-20020a1709060e0d00b00a3d53b0bf43si420243eji.46.2024.02.14.04.56.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 04:56:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65231-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=EFc3LRbK; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-65231-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65231-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 51BB71F245C2 for ; Wed, 14 Feb 2024 12:56:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77F7752F92; Wed, 14 Feb 2024 12:56:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="EFc3LRbK" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 EA1CF487BC; Wed, 14 Feb 2024 12:56:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707915383; cv=none; b=fJihn8LkEtPfwDlweawxyUG8XVmyR6wjsPAhKruLRzEHWuiQ8llZjY82InDnvBfeo8YNzJRwbKTqkYCPm31rCgP860Fh+BfQ0YywCvyl8c+dJ7Ui3C6NeewWVdeguB0HTc7f6JzeKl8dYIy0kXcWC3FWg6an6vh76eo9Zhf/Blo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707915383; c=relaxed/simple; bh=6DR0P/WQ+fKVZKkQryKokxeT6znavJmaWnFd7byWnkc=; h=Message-ID:Date:MIME-Version:Subject:From:To:CC:References: In-Reply-To:Content-Type; b=iDNYWHcEbXy12cK4vssvDMwhVDc03kN8igpJRTxgy/tT2sDXfXDsVLpqOOR34/JtiFPxQExMYN+nbwII6kAyTJgBo9sp+5Z3fFdTMNKxawpftdtEiJN2E/Lb5dDjEcFSJRKhQSs3RAUmpgRSB7t7fKXXWkH5CHZ/L8/+HKSbCqc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=EFc3LRbK; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41E6q01Z027945; Wed, 14 Feb 2024 12:56:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:from:to:cc:references :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=IqeTyFlzG5Lbc99OW9HRKNNfQNLD+RGgkxJvm4oKLAI=; b=EF c3LRbKYJhnk8C1CCCe3TrG/gmzRlh7kBJsxHSXvXv/66oK5Wey/mpHGMASWvD0aV OhJ4J1PGqLHwgUSPY1im0/XBlZbaaPaaRkm0tUh6sgSAh3NOBo4lRuIdX0HyBK1L CyOhsvDwVW79UVIl5DrvpolUA96RQVN3jCQLeD+qiaojlK1kW2lIXlbznhTTHiUC hHdUBPanEGniRX0VgchpIoD7Uvjm3zCFlZyEtSd4pAxxrQ8loXY+FZeGBsiZMFp/ YuNmvLD48Ux9SumJ7b3/YtqvUc+9M1YMjYT1VgRWnyi4mvEfUP78BKX2mLyXi/QZ BV6l/FAoLovjoHAYKBCg== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3w8myg1165-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 14 Feb 2024 12:56:17 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 41ECuG3j008259 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 14 Feb 2024 12:56:16 GMT Received: from [10.214.225.222] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Wed, 14 Feb 2024 04:56:09 -0800 Message-ID: Date: Wed, 14 Feb 2024 18:26:06 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH 0/2] Add board-id support for multiple DT selection Content-Language: en-US From: Amrit Anand To: Rob Herring CC: , , , , , , , , References: <1705749649-4708-1-git-send-email-quic_amrianan@quicinc.com> <20240124145631.GA873781-robh@kernel.org> In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: k8sSZjfZbDmNnlavKhPAmg49Bqb6K69a X-Proofpoint-ORIG-GUID: k8sSZjfZbDmNnlavKhPAmg49Bqb6K69a X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-14_05,2024-02-14_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 suspectscore=0 mlxlogscore=999 priorityscore=1501 impostorscore=0 bulkscore=0 mlxscore=0 adultscore=0 lowpriorityscore=0 spamscore=0 clxscore=1015 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401310000 definitions=main-2402140099 On 2/2/2024 10:30 AM, Amrit Anand wrote: >> There's a similar issue for EFI boot with how to select an OS installed >> DTB[1]. You might not care now, but users may later on (like we have >> already with QCom devices with fixed bootloaders). If you do this >> board-id route, then no doubt that compatible values won't be specific >> enough or have suitable fallbacks to be used. Then EFI boot can't use >> compatible either and needs to use this QCom specific logic. It may be a >> common property name, but all the types you defined are QCom specific >> and the matching logic is pretty much undocumented. I'm not saying we >> have to use compatible. There wasn't even agreement to use it for EFI >> boot case. This does need to work for multiple vendors and multiple boot >> scenarios. >> > Agree, given so many hardware identifiers Qcom uses to find the DT > based on a best and exact match algorithm, it may not work as is for > other vendors/users outside the scope of Qcom. > Since we have none to very limited visibility into complete set of DT > selection identifiers being used by other users or into their > selection algorithms since it is mostly undocumented, > designing a perfectly generic solution (one-size-fits-all) could be > far-fetched. The number of board files in Qcom DT selection software > package often reaches over 100 DT files due to multiple SoCs and > board types being supported out of a single software package and these > multiple hardware identifiers helps to pick the closest best match DT > within a very large pool of DTs. > Not to affect other users/vendors who would be using their own set of > identifiers and an entirely different algorithm for DT selection, > would it make more sense to define these Qcom specific > identifiers within Qcom specific bindings (qcom.yaml), along with > detailed documentation on our DT selection algorithm? I have written a patch for defining Qcom specific identifiers within Qcom specific bindings (qcom.yaml) along with documentation on DT selection algorithm, would it be okay to send for review? > > Thanks, > Amrit > >> >> Rob >> >> [1] https://lore.kernel.org/u-boot/20231114232012.GD6601@bill-the-cat/#r