From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AECF6C433E0 for ; Wed, 24 Mar 2021 15:01:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6E1A961A1E for ; Wed, 24 Mar 2021 15:01:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236402AbhCXPAz (ORCPT ); Wed, 24 Mar 2021 11:00:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236269AbhCXPAb (ORCPT ); Wed, 24 Mar 2021 11:00:31 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5ED3FC061763 for ; Wed, 24 Mar 2021 08:00:30 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id b4so8495654lfi.6 for ; Wed, 24 Mar 2021 08:00:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=weTz6m5LXcFdcbmDULQSn+jsUrGC4/6OEmDiA/doP4o=; b=A6DZRaZ1ty5zT2tsq2EEmG7FYfPgiPI1yD48orj2sYeEunnaZ7My7QsOfr6BadnkfM xIzkJXosNHm6qtUS9jTnKI/8VKgRfv8qqNFDJGClJ6ZrKqhsnM/pUPuLSCpcHypNsYq0 wf4j3574QjNCVMZ+ieGEgd3W5dc1lNmCDW3iq938TM/oNoECos14PllGZlEx6ZSMwPvt 3/XPuCxY55Qyc1XaqhZOeqaC0F3oq5BeGk0pqQ86cfCJthl3r5+RbbEFp/JFA7Xl9u/Y pe1oZwnChyYZYHi2O95bJ8vXk3mh2ws8Szm0TDyT5SuXQeSQtNMQDF/7CHTqH4Xz8tY9 9gkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=weTz6m5LXcFdcbmDULQSn+jsUrGC4/6OEmDiA/doP4o=; b=C5I4maH6RyxEnj2ul8EuDUTkdvZQbX6l3eQRgpSG10ehxtmLReFihlNmgsIVURy5hg xLcbwWjrKTW3cWFrUw+SRRhWT7kXLGvKo7XHCz6fElH6lRWOcbcXMdzYbfCRI2qFuiUh hPSFstH57/8t1FCotnh77mm8XUPrJ+4jbCto/ckYVk1/YW7HPQNncxQB1jopt4DnRvun CcmLfOwF5UG4LUZw6imV4prTp8kRRLCjyy6MH1F0DBxHGYY3aKeXN+ddHRoTx4A1X828 xYkinkxRSFXcK8DXLXyr1cCBuNtiPLPStDG+u5Gi82f9TZykV2pyV3mOOALsSC6Fj28r m63w== X-Gm-Message-State: AOAM532tkBlJpszpQE5F29E90Rxaasq28ZFvbGwcsvRfMJqqMH/Y4cRZ Af7kNtfiHDGNEn12zpR1/RFUEA== X-Google-Smtp-Source: ABdhPJywe7fz0NdqJIhVR+ybPgPme6B0QGjRA/oJ+ovNC/XP5+ZAIFQ2GaulTgOfpXcWvBGNImTVMw== X-Received: by 2002:ac2:454d:: with SMTP id j13mr2259398lfm.129.1616598028459; Wed, 24 Mar 2021 08:00:28 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id p5sm252463lfe.154.2021.03.24.08.00.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Mar 2021 08:00:27 -0700 (PDT) From: Dmitry Baryshkov To: Rob Clark , Sean Paul , Jonathan Marek Cc: Stephen Boyd , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH 00/21] drm/msm/dpu: cleanup callbacks, resource manager Date: Wed, 24 Mar 2021 18:00:03 +0300 Message-Id: <20210324150024.2768215-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org In the DPU driver each and every component would provide callbacks, which are mostly static. Other components would use callbacks to receive functionality instead of calling functions directly. Drop (most) of this indirection, replacing with direct function calls. CTL and SSPP blocks are left unconverted for now. As we are at it, significant part of RM (resource manager) work is dedicated to allocating statically linked components. Each LM is tied to the single PP. Each MERGE_3D can be used by the specified pair of PPs. Each DSPP is also tied to single LM. So instead of allocating them through the RM, get them via static configuration. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 13A4FC433C1 for ; Wed, 24 Mar 2021 15:00:32 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C52AF61A0A for ; Wed, 24 Mar 2021 15:00:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C52AF61A0A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 315B16EA1D; Wed, 24 Mar 2021 15:00:31 +0000 (UTC) Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1BD2F6EA1D for ; Wed, 24 Mar 2021 15:00:30 +0000 (UTC) Received: by mail-lf1-x130.google.com with SMTP id o126so22937108lfa.0 for ; Wed, 24 Mar 2021 08:00:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=weTz6m5LXcFdcbmDULQSn+jsUrGC4/6OEmDiA/doP4o=; b=A6DZRaZ1ty5zT2tsq2EEmG7FYfPgiPI1yD48orj2sYeEunnaZ7My7QsOfr6BadnkfM xIzkJXosNHm6qtUS9jTnKI/8VKgRfv8qqNFDJGClJ6ZrKqhsnM/pUPuLSCpcHypNsYq0 wf4j3574QjNCVMZ+ieGEgd3W5dc1lNmCDW3iq938TM/oNoECos14PllGZlEx6ZSMwPvt 3/XPuCxY55Qyc1XaqhZOeqaC0F3oq5BeGk0pqQ86cfCJthl3r5+RbbEFp/JFA7Xl9u/Y pe1oZwnChyYZYHi2O95bJ8vXk3mh2ws8Szm0TDyT5SuXQeSQtNMQDF/7CHTqH4Xz8tY9 9gkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=weTz6m5LXcFdcbmDULQSn+jsUrGC4/6OEmDiA/doP4o=; b=GaS15axT70poiSgnEx6fECbf4zCX4VBobf/Q+sgimj0VtibBM7LXhTLSkwSP+Fw8SS +sn7amaDT+ncU0WdZjhzPGQyc/uNjSznODDefQCbkt3WZYuxazJVai0ITDkbRdaaDwS7 JenILXvgIkLps6jSSUfdY1LKf47WViBm8DDIaKvpqPWujEhJJDvOOSlNGu3TD+H/2rx5 Fx9c31jT5HHeBZGXkIIuGjh8SSFjFxmeGdneYsQHFvL0tcmF+mkHjJ4XkYiDmRh0yh1h TBdVKtk82tGEuANpikm+gd17V2Xi68RPFQkbibXIRuJO37d5GCG+cFX9NLGDzhBojDCY +JPg== X-Gm-Message-State: AOAM533rkWQxeoSofEajkf4z44Hr2sP9vpa0DZZLon3u4tSuNz81N+Ka WPHdw4w9Fbmyff7vWMkgJ7+GQA== X-Google-Smtp-Source: ABdhPJywe7fz0NdqJIhVR+ybPgPme6B0QGjRA/oJ+ovNC/XP5+ZAIFQ2GaulTgOfpXcWvBGNImTVMw== X-Received: by 2002:ac2:454d:: with SMTP id j13mr2259398lfm.129.1616598028459; Wed, 24 Mar 2021 08:00:28 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id p5sm252463lfe.154.2021.03.24.08.00.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Mar 2021 08:00:27 -0700 (PDT) From: Dmitry Baryshkov To: Rob Clark , Sean Paul , Jonathan Marek Subject: [PATCH 00/21] drm/msm/dpu: cleanup callbacks, resource manager Date: Wed, 24 Mar 2021 18:00:03 +0300 Message-Id: <20210324150024.2768215-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stephen Boyd , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, David Airlie , freedreno@lists.freedesktop.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" In the DPU driver each and every component would provide callbacks, which are mostly static. Other components would use callbacks to receive functionality instead of calling functions directly. Drop (most) of this indirection, replacing with direct function calls. CTL and SSPP blocks are left unconverted for now. As we are at it, significant part of RM (resource manager) work is dedicated to allocating statically linked components. Each LM is tied to the single PP. Each MERGE_3D can be used by the specified pair of PPs. Each DSPP is also tied to single LM. So instead of allocating them through the RM, get them via static configuration. _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel