From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 18839606A32C for ; Wed, 2 Dec 2026 22:17:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=49x4fYFc; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=EtRY9meK; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=XgoAB+Iw DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=BxyOKOtKhFfwDIZSeW+oC7iOXWK64wC44x//Azwuhqo=; b=49x4fYFcLwoUAS mcbQ5yzFSEsjMGE7NlI0FM0c8KhJvX1nNIRxWrG7dVQKjdV/gZ6E/gP2qw/NtR9ovCYs4pdeabR8F 6cI84wsaPXI7xoNTZ5v4zjqP2KGW/GfMY9PdqxG19ACnrqmwNlZ9QTwKnskzE4S2RS5TpZdGyVq0Y Yy6WfulVrrdK4ck4kvyF/SKSpSLKKE1mHwl5e1iNgvEI0sx/adf7RZ1xRfSPKhuG3CGfusEIu2Au7 9mPhkQQmSKP9u9TJoePIt/QhJUJkVqDaduhqHuPOT2+jkTtRDXdlzwUwgjwfxriIFvl9ur4PhlE9O Q6A14QGaSKbstPBxSgoQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYsdU-0000000Cv1s-03qI; Wed, 02 Dec 2026 22:17:12 +0000 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYsdR-0000000Cv16-3pf0 for linux-arm-kernel@lists.infradead.org; Wed, 02 Dec 2026 22:17:11 +0000 Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B2LGuYX1854492 for ; Wed, 2 Dec 2026 22:17:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= BxyOKOtKhFfwDIZSeW+oC7iOXWK64wC44x//Azwuhqo=; b=EtRY9meKGOv1/s/U WGBcHMPOfzYVyxBXOFlHWveCtTKto9hx126xfqLoj5wNPVHfonGwP/edYf2PDLro 1A/iBzNP2j99z36LZj62IsveWR4ohMfBZF1SzVYfE2yGAyZd+R3WHcE1IJMwxcOY i48sG6sxtfg1bnANasvOTYeOlCywg6Fa75qhSeN1v+el03/EXmN/YDmpP+SV37mS zxi5V2zQ1PNpOkrLMYZoNf/SlNPudI+2RF9i0XQMvVsbL7buv+9+jkWyeQqV8OCZ hRHxyb0bxGsolErKRvnZHpzPBqAjdi8I3KY5GAEKiMTV9KFo/yYI8sTEn6gKj8CS dqyTMw== Received: from mail-dy1-f199.google.com (mail-dy1-f199.google.com [74.125.82.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4jahwjtnm2-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 02 Dec 2026 22:17:09 +0000 (GMT) Received: by mail-dy1-f199.google.com with SMTP id 5a478bee46e88-3854627c1c8so17630939eec.1 for ; Wed, 02 Dec 2026 14:17:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796249829; x=1796854629; darn=lists.infradead.org; h=content-transfer-encoding:content-type:mime-version:organization :references:in-reply-to:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to:content-type; bh=BxyOKOtKhFfwDIZSeW+oC7iOXWK64wC44x//Azwuhqo=; b=XgoAB+Iw5sl14KF3+kIGPR5FSBlRiKIUjXssDWs2PrCXB6eN1Ynz/A/8XrVdIA9jKP HxxZ5k/+8vTQx40TfCtuAb/4VeR7maFPHhYxsH1vLdibN4E0Hqnk8gGuCsZBWt/HxiIV JIUpb0YQHNEXP56XpDPwFCXVSDyZZwnqdVe7yYHcK3AjAGa7er3dnfe5pBRsJkqhddcI 0c/4G2gh1BuwaExf+J3sdY7y2azFzQmHCYO9yJALM69vcks7rY8/3eb9HdYeby9PQPXU msFn/OXz0qMDWJazYw/RC7LNPWIqfdjiZiFoFXy4uGaIu6+aEVIf1+LG8WYBYWeYwG+b RP1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796249829; x=1796854629; h=content-transfer-encoding:content-type:mime-version:organization :references:in-reply-to:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=BxyOKOtKhFfwDIZSeW+oC7iOXWK64wC44x//Azwuhqo=; b=uoogS2pW0EB7AfsSzwXrcaTHfEItFqiLbIWNEmJ8mltUlivReCWXi1g//8vHZnfIPE mHWJwAuHNAnF33pRLfJuh9swPLev4Qh4i1UiehBjHnp/DyhIiDWPB0l7K5BaGd5nrFqN wmyLSHxRAlcP+mY9ptYpj2VqRnSg/SwXik0t7/+6qVWN2ezeWqmHd+I9GsDk9x2Ugxmq pkUmv2oRQrHpeQk0tINwcGRUihq0w2vAtBtYTGxMnG3c33Gkr0gSv0kqlr9uvfytE9nV Q++8L0GywXYbRIoS+TlhwZReAsWQo1WjN/oDOkzoOdGZMPUNfboGu9VCFwjJeavI8Jnx iYDQ== X-Forwarded-Encrypted: i=1; AL+hErHktk+53xXu6ZQ5c/lb+Cptsze6pS7+rd+92K2ZNZjMr69XsZKA1qLaBU0LJOGpCVeUEkk1F15hP8wJY3BgJwbO@lists.infradead.org X-Gm-Message-State: APuU4Z8xFz9p7yHRopDgPaI1Dn7SHrdhqJtT+h95xTr+BtUUEDu5mDpV +ILWSqCmWKfyhlVVJV2vCd3zlmtFgIPn0oRiebN/4aBuf+rlujwg/W0IKVQpyu/Rrz00rRl9//Y 6uwB8Xoy7Y3PZRqbxTSLH8cNKMyAB/OwQfO2cXOyVKxwoixXsju+LyKRX5BdjfFidz7TaRDG2V6 9CXA== X-Gm-Gg: AZFdTZdaioVh9pObBIA7OXXF1ThR19ixHMzRlmRFS/v9dv+xKiq5nzgO4Un/6gNwe+Q Iy98vPF+Bvgzm2DAB9CsBUUxeoDxq6J3l6365vgEFQFbSSj0k77dskz/TKgOU9OH3L0xFnt76Ld Fjd6bQORJsmj54E3ryA0bqx7KQUSVHF3krWRmOfaFe8TmX46mzNoFZt86o/7awT/OWJmJHdgiHL BxC64uqlhDMaUPo7jNmY9YVXEmHzKinAlkgAe2/v88IBYUOFb4V5farbq8vRQDfUU9G2ohX7RnN UZ+BD6MONfyj5Lc1L4jGX44zoTOd2Hur5E/HZKj0u/IJwUpdvJ1dQvTHnKm7KIiuhJo/igfbvFR Ewc0fwhScmlGMP1+RJPVOyPXs/gASpBujA/dKKEDRJspwUKL2R6wetysVKjqSYudrLhPIWIL1EN CCJwFohqrGuOkz8PQPWi7YFnVUkQ== X-Received: by 2002:a05:7300:c7c4:b0:376:13e5:e8fe with SMTP id 5a478bee46e88-3856c4b839cmr38767811eec.3.1796249828780; Wed, 02 Dec 2026 14:17:08 -0800 (PST) X-Received: by 2002:a05:7300:c7c4:b0:376:13e5:e8fe with SMTP id 5a478bee46e88-3856c4b839cmr38767785eec.3.1796249828048; Wed, 02 Dec 2026 14:17:08 -0800 (PST) Received: from localhost (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-38566cd40c5sm150545833eec.10.2026.12.02.14.17.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 14:17:07 -0800 (PST) Date: Wed, 2 Dec 2026 14:17:04 -0800 From: Jonathan Cameron To: Yeoreum Yun Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Lorenzo Pieralisi , Catalin Marinas , Suzuki Poulose , Steven Price , Sami Mujawar , "Aneesh Kumar K.V" , Jiri Pirko , GONG Ruiqi , Jason Gunthorpe , Mark Brown Subject: Re: [PATCH RFC v2 1/6] firmware: arm-smccc: introduce match function Message-ID: <20261202141704.00003432@oss.qualcomm.com> In-Reply-To: <20261127-firme_interface-v2-1-ab88b2d0b4e0@arm.com> References: <20261127-firme_interface-v2-0-ab88b2d0b4e0@arm.com> <20261127-firme_interface-v2-1-ab88b2d0b4e0@arm.com> Organization: Qualcomm X-Mailer: Claws Mail 4.4.0 (GTK 3.24.51; x86_64-w64-mingw32) X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Proofpoint-ORIG-GUID: ISSGLD1Bg_UyBPQ3NZvwqVH97ZPza6Qt X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAyMDA4OCBTYWx0ZWRfX6Fd2jr60JE7c 3gbpKDnXfJHOVmdve0wm5pzqZG3de53/NgujXFA1+KzMl2p63c5MOcdTz/541XD5TBXyOfu0FcN trl2ejxI86G1/KVFopBoxIgwDb9NgCw= X-Proofpoint-GUID: ISSGLD1Bg_UyBPQ3NZvwqVH97ZPza6Qt X-Authority-Analysis: v=2.4 cv=JLuuIMKb c=1 sm=1 tr=0 ts=6b1098e5 cx=c_pps a=cFYjgdjTJScbgFmBucgdfQ==:117 a=JYp8KDb2vCoCEuGobkYCKw==:17 a=kj9zAlcOel0A:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=7CQSdrXTAAAA:8 a=EUspDBNiAAAA:8 a=cgkqXNNdIHdLa1chNI4A:9 a=CjuIK1q_8ugA:10 a=scEy_gLbYbu1JhEsrz4S:22 a=a-qgeE7W1pNrGK8U0ZQC:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAyMDA4OCBTYWx0ZWRfX4mXzaXTwV/64 OLb9B8Uc0FNLH23LZmgsxNX0v3D4yVDYv/2G9MDIjiH7flGeAKv9NMdkdfq3wJYy7coi033vpyD qGYM92NkCeSG1ouQiiylKfhf7yoG7nLQVTRMNOnuWq+t6hucBdcMXIP2ZffwwhF/A3BoTSRoX70 lTf2MUEZsr+2l9aIkqjZq7F64TchJUUbbYs+IOKsQmNjmofIBNdF0ofl1a5cIrOz1YX0xijyKEz 9YWnTwR69NQiT0fnIYCU/JjraJ55se1ml1VkBWaGjjLuX2TTBpyMQZA6PGfDtNsCwg/nI0h6mCk GmPU+9JMimcWA2Oddrqyaiu/iK7dHZ7/PB1LExBLceoZGCnh26pNB6Fk+ZJUhAz4v3mX/uK08N6 ep2/KPJQ1FCUruYUW0caS3YAxPfpiRQ9uFnvnhdQzthZCwRpH0zoyk8jcItwxUYz3UqQ8W+YcNx ZwUcYaRLpoxllkF0SzA== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-02_06,2026-12-02_07,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 priorityscore=1501 suspectscore=0 malwarescore=0 lowpriorityscore=0 impostorscore=0 bulkscore=0 phishscore=0 clxscore=1015 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612020088 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261202_141709_977868_860918B3 X-CRM114-Status: GOOD ( 18.81 ) X-Spam-Score: -2.8 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-12.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Fri, 27 Nov 2026 15:28:31 +0000 Yeoreum Yun wrote: > Somce of protocol based on the smc is not enough to match smccc-device > and smccc-driver with func_id only. > > For example, firme interface will create smccc-device per service > and this requires to chech whether firme smccc-device is for each > service. > > To resolve this, add match function and match parameter for device > which is set at the time of smccc-device creation so that smccc-driver > could match proper smccc-device with match parameter and driver specific > match function. > > This match parameter is defined under smc func-id. IOW, devices which > share the func-id should have the same type for module parameter so > that each driver under the same func-id can check extra one with > match parameter type. That last sentence doesn't quite work. Perhaps each driver can filter first on func-id before evaluating the match function. > > Signed-off-by: Yeoreum Yun Other than that this is a reasonably neat solution. Whether it ends up flexible enough in the long run for all the crazy stuff that gets added to the spec remains to be seen, but for now LGTM Reviewed-by: Jonathan Cameron