Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp4010987rdb; Wed, 30 Aug 2023 12:33:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE8OHxhwtQpN2eOodIwFZVsMp/k4R232Luok1bvWMYxaiikKj1hZ6yp1/yLcfqLKkR0WGMq X-Received: by 2002:a05:6512:310a:b0:4ff:8f12:c4d7 with SMTP id n10-20020a056512310a00b004ff8f12c4d7mr2366555lfb.31.1693423982119; Wed, 30 Aug 2023 12:33:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693423982; cv=none; d=google.com; s=arc-20160816; b=r1GA/EuQQ1OTQZBYxdHXQYiXAr4doBw3Kr8Tf2HVpzExtYZFAojv9Fj926x4YTAT9w XrsnC/SxmkL4Q5Bt/H7HTyPj8jF6C1FjOj1LPyxYi21LDnCy+kS/E16M2ePMNM35wNaC lKa01hnp2w2NRNUOWk3X0B+zyjevwNPfxPz+RoxmJ6wu74+T34+tET092Atg0DhThh9Y QvYtCc5Hen+ThQvOJso6DJiIav79qlr24xIw/k/Rr3HEn7wQIzu447XhXxnDDl5ReuHq tU7syU0OmDKyhkPqHrALQsPK8y5cJ+3v+tXGg9DDxIyRUD+GZhj71+wVbzLa83n+w34a bWng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:cc:to:subject:from:date; bh=wjy+68foE20i7DupL8T1NJrWPBEh3KaqvOA6CV+MafA=; fh=hemkMqBBmxsPwfmKWhkfNKXPgdNa/z5yHmXDCZNTBXg=; b=g1qyK6sKZXb40vvehNiqH7ETHV7wgJR89UMMm8MbpQHo1KTmcfhlSc26CABJfCuIdd +9ECY1LOK656dmrqrnSnbkLnxHvmPyjg5kcn2tYZGnLeuIfkM6GcDQtpvsOeUxasprZ2 MOZi4aSyFyEHDRPxrNNq+Zlazr5gLFK1zjbARnQ26JFL1T3SkGY7SbyE3sxzUBltpZNv LkhaA2Ldn0cAImjwZDxBfxs4Mfx50sHHIhm90cB5kTIfgOlCz0asoQfdsy5qzdRDHEnw o2B1Jhfmzr3HfkgmkhqqMe74LIL/i+xsiFXSrztujknDpAkTK/VPHZbq1vCAfvtNgdbu hhhA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q24-20020a170906941800b0099cd14c38desi9031313ejx.434.2023.08.30.12.32.27; Wed, 30 Aug 2023 12:33:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344182AbjH3T0o convert rfc822-to-8bit (ORCPT + 99 others); Wed, 30 Aug 2023 15:26:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244997AbjH3OTg (ORCPT ); Wed, 30 Aug 2023 10:19:36 -0400 Received: from relay04.th.seeweb.it (relay04.th.seeweb.it [5.144.164.165]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 565A8122 for ; Wed, 30 Aug 2023 07:19:32 -0700 (PDT) Received: from [192.168.2.144] (bband-dyn191.178-41-225.t-com.sk [178.41.225.191]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 635EC20035; Wed, 30 Aug 2023 16:19:29 +0200 (CEST) Date: Wed, 30 Aug 2023 16:19:23 +0200 From: Martin Botka Subject: Re: [PATCH] firmware: smccc: Export both soc_id functions To: Sudeep Holla Cc: Mark Rutland , Lorenzo Pieralisi , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Andre Przywara , Alan Ma , Luke Harrison , Marijn Suijten , AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka Message-Id: In-Reply-To: References: <20230830-smccc_export-v1-1-6ecc7661bc94@somainline.org> X-Mailer: geary/43.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patches using this are still WIP but the basic point is that H616 has 2 die revisions (And those have couple of other versions themselves) that require different uV and some frequencies are blacklisted on those versions. The driver is using these functions to read the revision (Not the version. It just looked like the logical thing to export both and Andre confirmed. We can ofc drop the version symbol export if need be) and reads trough the OPP table and selects the supported frequencies and uV for the chip its running on :) I will try to get the cpufreq patches in order in the upcoming days and I will Cc you in those as well + post a link to them in this thread :) Cheers, Martin On Wed, Aug 30 2023 at 03:05:09 PM +01:00:00, Sudeep Holla wrote: > > > On Wed, Aug 30, 2023 at 2:24 PM Martin Botka > wrote: >> arm_smccc_get_soc_id_version and arm_smccc_get_soc_id_revision >> need to be exported so they can be used by modules. >> Currently sun50i cpu freq driver is planning to use these functions. > > I am not against exporting these but please post along with the > patches using these > exported symbols so that no one complains about you exporting the > symbols mentioning > some patches that may or may not appear in the future. > > -- > Regards, > Sudeep