From patchwork Tue Jun 20 11:10:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 11031 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3587883vqr; Tue, 20 Jun 2023 04:19:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6UF5vAjBl0KvOfAg4E/5bNKkv0H5dHEe3VjUL1BZYj2c41DdZOqsMG17qpTVNfdLZCreAQ X-Received: by 2002:a9d:6447:0:b0:6b0:cde0:d9b with SMTP id m7-20020a9d6447000000b006b0cde00d9bmr9136074otl.2.1687259974369; Tue, 20 Jun 2023 04:19:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687259974; cv=none; d=google.com; s=arc-20160816; b=OtW1sOGht4kqaIuqL1o0puiMGtsSPBLfy2uH/CrrwHyxeRt4N5RYgGK11qFcexPUce Ob5hNKeE2thvUqS/lz8Rt05VEvUi76zMoskEWRrZFdQRrAZe2xjVeNY2NNwZvPptnoh4 MRkxWCzTd0jQDVG5wnukDDm5VGHRDGJym269EDuyhdijwjB/qOuBjy3g/SmLVFNKNJ8h 60ByODj29kHpsjBDyR/wCXx/C7ZCqDBknJHy2sxQ+o+n+vYFeSxIcWBVCIsxNsKuqNYj 395M2q3NWRhZ4hASYxrb6rDWU4AYWX3MWZ0y2U3/n2/LGbfyVrH2iWKFWGICMCKfHnRP 6ZaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=IoT2GR/Uoi2aGgdfRzromK+7BmskPgx1PJTo67yINu0=; b=AJCj3e5DEKq/cgN2lVc1F+m3Jt9anQVBheAJdw+wy7MSy6r86kQkAJ1/igVBD9TWOp fPeZuCRvJBiAY8uz0cQNSpA/pNLEginPW1u2qnNtWTjC1DIS7d+LUBpIerT6XOvxizmb H8UYn4LB0m03Q5q41jiwkxh6KjSaU1ovMOvOe08Glx0qhC/eNzbkunaY7/oMtFzE5jpq mDShsrdO/mkZLuBUixcOpYzf6Lqxd7gHPPYOQGxIzbNaQArLA//DZpBVjMBoJIqvzgZn 1oNUiuasJsXpw5jB5qYuetcZkZ41LP6Jf8GEeZd3edlK0UwVImrmoQz63JFf14+4Vply fzZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SjWj58M0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l76-20020a633e4f000000b0053fb768afc8si1451620pga.748.2023.06.20.04.19.21; Tue, 20 Jun 2023 04:19:34 -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; dkim=pass header.i=@linaro.org header.s=google header.b=SjWj58M0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232296AbjFTLKp (ORCPT + 99 others); Tue, 20 Jun 2023 07:10:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230148AbjFTLKn (ORCPT ); Tue, 20 Jun 2023 07:10:43 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BE1DC4 for ; Tue, 20 Jun 2023 04:10:42 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-4f865f0e16cso4013104e87.3 for ; Tue, 20 Jun 2023 04:10:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687259440; x=1689851440; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=IoT2GR/Uoi2aGgdfRzromK+7BmskPgx1PJTo67yINu0=; b=SjWj58M0HawcUhEnQUhjDM2rl2u3ACNUOQeMLzsfSi0fTfnUMqvhrYeKRIRujPz8eW O7EEYwV0QGDFDPaCpuyfIx23shDmD5szRESu4SFz70X5NOVfeNgexNX7qzjUAgWn4v6h FwyolvZ1znYI46bFZgQcjoaCwKRHBQ2+Imxbz9y139MVOilQxeRvXK2XLDyqp3JUwCKU LUcRfiEI6VcFsvIQ9Ll7TwR/L9A7nVmyDthePNoE5cr6DgJ9mMcA70dsrYIJK9GWyuxY hLgXz/e7892voLDN5mNhNxyw3NuYJMK2nO8PWJZu4VKw7rMMyzFK0WzB0ebL9rcW0Rv8 BQKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687259440; x=1689851440; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IoT2GR/Uoi2aGgdfRzromK+7BmskPgx1PJTo67yINu0=; b=G6V/LwKFa2rFFH0KhW/QnAEeYk3iqc5wqxSBJsvlzQLm6Zs4cEVKVyOPdW9f5zzcfD ++Amk5WysAME+8Uo+aYsu8E6oZHflKtSVtvuUi4/y0Dqw6PbYyBCBpxYYb2Nz1JdGCRr QJnXWett2QN6vjgBCyFea5b0rGwg55yljv6y4DJD8XnhpawA60Ay0Obhd3ZrZS8yMBZ0 GTwU8S4wIdJqbR6Rm24F773rNuz89Dv0nF479xFMIEcbTcsNXouULOue5LI/Akzsiw5/ nuBEPAy+oyFe7b+b1oYX39craFZXlSybop11e5MPlOjbrmiHZhSpHkxNtRNwLXfASptS 2bUg== X-Gm-Message-State: AC+VfDyBj65UP7da3y9CHNiye+87Dr7au7linDcGc6o1KD3riUs+1HQ3 oWAWG6Qi8eNBavb+5sfDfdwLmg== X-Received: by 2002:a05:6512:288:b0:4f3:a99f:1ea1 with SMTP id j8-20020a056512028800b004f3a99f1ea1mr7040192lfp.45.1687259440360; Tue, 20 Jun 2023 04:10:40 -0700 (PDT) Received: from [192.168.1.101] (abxj193.neoplus.adsl.tpnet.pl. [83.9.3.193]) by smtp.gmail.com with ESMTPSA id u26-20020a056512041a00b004f764716afdsm314395lfk.257.2023.06.20.04.10.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jun 2023 04:10:39 -0700 (PDT) From: Konrad Dybcio Subject: [PATCH v4 0/6] Adreno QoL changes Date: Tue, 20 Jun 2023 13:10:35 +0200 Message-Id: <20230517-topic-a7xx_prep-v4-0-b16f273a91d4@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIACuJkWQC/4XNQQrCMBAF0KtI1kbSiW2MK+8hIpM0sYGSlKSWi vTuju5EpMs/zH//yYrLwRV23DxZdlMoIUUK++2G2Q7jzfHQUmYgQIq6UnxMQ7Ac1Txfh+wGrg4 KG21VK7xn1DJYHDcZo+2oF+99T0f69GH+zJwvlLtQxpQfn9Wpel//D0wVF1yhbvYenNYWTn2Im NMu5Rt7YxOsAEBAbXSLCAasFz+AXAEkASitkwpqeajNF7AsywvpOsZDRgEAAA== To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter Cc: Marijn Suijten , Jonathan Marek , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1687259438; l=1738; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=eX5ZTxH/9LwPpvZBJk24YxyZZoovg4iLjcTUF8O57GU=; b=eYdW9DwxTwYnC48PMFoXBqN4XCttHvlsNmTdrnieqG6ADJHwq4DgAv5Euo8IT8Sgs6KGjoJYS bcv2VpLfEIlB4d9XqRNEN7KOTFEqoKzs66a9BGbti6xQED2Id7N9kH3 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769220314816784078?= X-GMAIL-MSGID: =?utf-8?q?1769220314816784078?= This series brings some niceties in preparation for A7xx introduction. It should be fully independent of the GMU wrapper series. Signed-off-by: Konrad Dybcio --- Changes in v4: - Fix an issue where half of patch 1 got squashed into the cover letter.. - Link to v3: https://lore.kernel.org/r/20230517-topic-a7xx_prep-v3-0-a3ce3725385b@linaro.org Changes in v3: - Pull more definitions from mesa - Decode CP_PROTECT_CNTL bitfields - Rebase on next-20230619 - Link to v2: https://lore.kernel.org/r/20230517-topic-a7xx_prep-v2-0-5b9daa2b2cf0@linaro.org Changes in v2: - Drop switching to using the GMU_AO counter in timestamp - Add a definition for REG_A6XX_GMU_AHB_FENCE_STATUS_CLR, may be subbed with a register sync after mesa MR22901 - Link to v1: https://lore.kernel.org/r/20230517-topic-a7xx_prep-v1-0-7a964f2e99c2@linaro.org --- Konrad Dybcio (6): drm/msm/a6xx: Add some missing header definitions drm/msm/a6xx: Use descriptive bitfield names for CP_PROTECT_CNTL drm/msm/a6xx: Skip empty protection ranges entries drm/msm/a6xx: Ensure clean GMU state in a6xx_gmu_fw_start drm/msm/a6xx: Improve GMU force shutdown sequence drm/msm/a6xx: Fix up GMU region reservations drivers/gpu/drm/msm/adreno/a6xx.xml.h | 3 +++ drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 21 +++++++++++++++++---- drivers/gpu/drm/msm/adreno/a6xx_gmu.xml.h | 2 ++ drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 14 ++++++++++---- 4 files changed, 32 insertions(+), 8 deletions(-) --- base-commit: 9dbf40840551df336c95ce2a3adbdd25ed53c0ef change-id: 20230517-topic-a7xx_prep-787a69c7d0ff Best regards,