Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp99154rbb; Fri, 23 Feb 2024 13:11:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXqhhvX4QSMipJxXXIDAVAxpIWYA6Pd+ibfSyMqeMh9hUOQfeJImrMP8e0rcRbSwbKUFMBKnp10iKov8eO+NZ/pcxT7PYUjkHntLuewdw== X-Google-Smtp-Source: AGHT+IGVR3/GNt4CgfPCwl5jvhUUIC7fufNnaT5rX0fX2g8C9o9lY4P6U3iXuVSJP/esztoxvQm/ X-Received: by 2002:a17:902:a384:b0:1dc:7923:a9e5 with SMTP id x4-20020a170902a38400b001dc7923a9e5mr861943pla.39.1708722665391; Fri, 23 Feb 2024 13:11:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708722665; cv=pass; d=google.com; s=arc-20160816; b=Sp4KqFTwKJYzQd1+TDMC2sPOoCh2OkeKQPPXNBKRSfCFcNtkL/GBt53b+Y+auUqDod Zxj7KZnL1rKKwqfE4ev47m7Kx+4jJcR39ViEUqZm0mxEkaanVMIF7G3RYlnSE9CwSnzi 0CgZgNKFima47PGlaU4kUfvqJ+V2bmkilosGipDqjtyajRNI+V144LhyKbsncLFRkfTC TlCPdEpQWZAR4R5QbFDEIe2G5rJJv5ptOOXL9WENKlGN4jFF9bKSklrj0gNUb0D7kIJ7 VkPeuCGyYBDZ2Hj+Toxlmy6+N9RsS1H2Uf/6mf2/VkDtaKZ04lNuRQwS2Vfr3tH2vjtv To3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=brDT2YXF8x8KzS2bAH7c1UHxnZms6mIqOBc2rPT/eec=; fh=tfC/Q6C1oIxeCfZXG1hn/JZfmPr6pv5DMvncnYIDayQ=; b=r6Wy9v495KM+h/zsPspEAQMdCsQJV8esw8Jsm0L22g245NbpS+cdIGzG8e3zXf4GZS XEwDDfWZfiAKoQUZAVxVOHUBY031kmpMcIWS6OEa+Lr+SwH8G+37b7LjQUdfkinMTosF QOiur5ej7cS4vd/BTsFcz5y1MY1YV/djLn9QPp4KAFtHSzkQx6Av+NwynjgH0Qgd1X+P j6XKV1c4kCypCB0XdXYeTyutWwW49nEQC4VL6vfLqn+Ye5+xS7qLchFOA51pK6tMPuL4 C6VuC/6WbsTZ+MvSZwfZcglCErdrT6kwiw3QjWMQ1pujoI1On3hIYg8pxYnX83ptMZKb 8dXg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Bi+ot12s; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-79182-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79182-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id lk4-20020a17090308c400b001dbcc3280f3si12153634plb.232.2024.02.23.13.11.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 13:11:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79182-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Bi+ot12s; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-79182-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79182-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 43CAEB23041 for ; Fri, 23 Feb 2024 21:11:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7E3B6149392; Fri, 23 Feb 2024 21:10:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Bi+ot12s" Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C00FD1482F8 for ; Fri, 23 Feb 2024 21:10:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708722657; cv=none; b=iOFvVltEFLesfQSqxsy7+gr1n7z8ulmos6Te+I9V5k+qJLphzH5QHInra2vFyo1jmJ6WcitIh+m2gXlTYQR0szmW+exO2QCvboaAUXiIf/flqBfUCYqFS7NfX4PUNBe82Sjgh4U6s9nA4Njf2Jl80AB7OxBlmL0voW8W4DhS3kc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708722657; c=relaxed/simple; bh=zLfaBPQQ/PChVmxN6vpfoSLBNRdvKq4jQqRP2+O0sUQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=omRLwpU+SFR7f7jATPukQ0m2MQlYUUBfLMNpqqfKa9JOpHpsq4Jgk0Pl663Ue6JWvRnO2EBA5DLEfvWYg/mAHBgU7DB1dfWU8ViPLbwSgxvd5t7togxz/xsLl9v+BGAOLsy9ACZEYGIrKKYsKM3vvsisE3cE3tEtDYHEL73+7PQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Bi+ot12s; arc=none smtp.client-ip=209.85.218.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a3e75e30d36so240386666b.1 for ; Fri, 23 Feb 2024 13:10:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708722654; x=1709327454; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=brDT2YXF8x8KzS2bAH7c1UHxnZms6mIqOBc2rPT/eec=; b=Bi+ot12sSPPWiJd4UxeO3J/+6vvUyvvisiqqoYcDUeQAzCQLAxY092awLenxUlOBg3 HdiKbrwdvHpuV+LAxIFWd5XS7H8pWVp28WYUGsNGM2kDZZc7+Ki/XuqbOf+E4x9MzcUE dihyW1LbOApegVhIo95SSdSYeMIBUhqZbhqzCR2F/gyhszSJLQ7MGFQrBKmSR1oUyHmC ibDdrto7Wc2fyByMNf3fyZ+deelZ9jAQ3D2SIz0Pzw9BtkgOKEDGmwSlDlp69uYCV6zo /Wn8KON55XRwd6IFFIVgNIxndOQgMJi9JFUEx5cRMDBjfoATE1iAWx8sOKbvJq4BAl4y pwVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708722654; x=1709327454; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=brDT2YXF8x8KzS2bAH7c1UHxnZms6mIqOBc2rPT/eec=; b=siW8oCS7iPP7Vv17kRWyDPTW7LXUr3iAQwBnCJZ8ogbJ8o05gMIRPW/XBorUwgLwpN dY3xqwUBBwF6Tc/MJX1Q1lmxaaI3qSZXrfH5XcSaF3HSUDzE+6/YLy+bGya1Q0UfBSmP YbIw1OAPQUwovElLUczl4uudSnxsfQyTudzEkhFnDfsxqouVTxkh5eZWuODnuTMpN5BC yT/gtYHsU3SC7YX4B3Pgy9KQeunVkSsAngZsFHgiZcaHe7yRhSBT75B5TSbSylVW9FVz hgNjzDMXouynnvcYCPvcy9o05PXKvgjID8WsyZTHYZXHNIZ+UBidDYshMxz2+Io4Uhkw BWeQ== X-Forwarded-Encrypted: i=1; AJvYcCXzaVIzxqJCFwHMKWJ6AGbZtjw/LsAF05Np+pWA69YBn0lL96FbTiK0soxc/vQIY9mgXx2m0woKGTH9Pt8g+VEl3N3nvGqqSz2192tl X-Gm-Message-State: AOJu0Yzuk8miJmwJMEq8PeeDudnsTT5wK8ahIDqlyxhOcdGxIaegFEeJ yb8FEhl5+gLFFsqXKaFVgmeCEV0iXdFVvrbiayz7BEdae9YWjVGoDsQigTB3mtU= X-Received: by 2002:a17:907:b9d0:b0:a3e:cd8d:39c3 with SMTP id xa16-20020a170907b9d000b00a3ecd8d39c3mr781477ejc.38.1708722654037; Fri, 23 Feb 2024 13:10:54 -0800 (PST) Received: from [192.168.179.2] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id rs6-20020a170907890600b00a3e48deecd4sm6313016ejc.222.2024.02.23.13.10.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Feb 2024 13:10:53 -0800 (PST) Message-ID: Date: Fri, 23 Feb 2024 22:10:47 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v17 05/35] virt: gunyah: Add hypervisor driver To: Elliot Berman , Alex Elder , Srinivas Kandagatla , Murali Nalajal , Trilok Soni , Srivatsa Vaddagiri , Carl van Schaik , Philip Derrin , Prakruthi Deepak Heragu , Jonathan Corbet , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon , Bjorn Andersson , Dmitry Baryshkov , Fuad Tabba , Sean Christopherson , Andrew Morton Cc: linux-arm-msm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org References: <20240222-gunyah-v17-0-1e9da6763d38@quicinc.com> <20240222-gunyah-v17-5-1e9da6763d38@quicinc.com> Content-Language: en-US From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrB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W7yEgorBgEEAZdVAQUBAQdAwmUx xrbSCx2ksDxz7rFFGX1KmTkdRtcgC6F3NfuNYkYDAQgHwsF2BBgBCAAgFiEEU24if9oCL2zd AAQVR4cBcg5dfFgFAmQ5bvICGwwACgkQR4cBcg5dfFju1Q//Xta1ShwL0MLSC1KL1lXGXeRM 8arzfyiB5wJ9tb9U/nZvhhdfilEDLe0jKJY0RJErbdRHsalwQCrtq/1ewQpMpsRxXzAjgfRN jc4tgxRWmI+aVTzSRpywNahzZBT695hMz81cVZJoZzaV0KaMTlSnBkrviPz1nIGHYCHJxF9r cIu0GSIyUjZ/7xslxdvjpLth16H27JCWDzDqIQMtg61063gNyEyWgt1qRSaK14JIH/DoYRfn jfFQSC8bffFjat7BQGFz4ZpRavkMUFuDirn5Tf28oc5ebe2cIHp4/kajTx/7JOxWZ80U70mA cBgEeYSrYYnX+UJsSxpzLc/0sT1eRJDEhI4XIQM4ClIzpsCIN5HnVF76UQXh3a9zpwh3dk8i bhN/URmCOTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <20240222-gunyah-v17-5-1e9da6763d38@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 23.02.2024 00:16, Elliot Berman wrote: > Add driver to detect when running under Gunyah. It performs basic > identification hypercall and populates the platform bus for resource > manager to probe. > > Signed-off-by: Elliot Berman > --- [...] > + > + /* Might move this out to individual drivers if there's ever an API version bump */ > + if (gunyah_api_version(&gunyah_api) != GUNYAH_API_V1) { > + pr_info("Unsupported Gunyah version: %u\n", > + gunyah_api_version(&gunyah_api)); Weird for this not to be an error, but it's probably not worth resending over if it's the only thing Konrad