Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2394286ioo; Sat, 28 May 2022 12:15:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcHuSmG6UWtfw5ZICVLr/r59sQqAhxSXlOoc11P0tPVgIYMRYIahLJVCaxKysn49Jakg0z X-Received: by 2002:a17:90a:e64f:b0:1e0:8999:b8a5 with SMTP id ep15-20020a17090ae64f00b001e08999b8a5mr14499174pjb.185.1653765308225; Sat, 28 May 2022 12:15:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653765308; cv=none; d=google.com; s=arc-20160816; b=pFGp/eoNpIq3Tg2f56ckCocuD3wSO9T5Ol6ZLiPl0Rnd9MGvFFEiClzmpViu16hDBB SU+GN0S4a5+m+5PLjJ3bPPFAnrgTeL0fA8TEtwptvqorbzoQn3XhNb2FvwcVijWaUa7b uCj95oI7FeGUwKBqDeeiJHA3qGy16qm6HEjJ9Y+yQJBtj5P8cq0NrOSQqu6n9cPANkPH NFPp9e2hA8io9xOHvlT2/RQ/ncsDAm2x0evW7jofQEwQdBM57Xz4/wTbZCykuORI2aK0 wTML8sHAXshuM7ts7LW5hDnUVdbsuCP9z9Bii+G6rNngIGcRmlpLRAVAT0Og2uZK08yM CkhQ== 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:date:subject:cc:to:from :dkim-signature; bh=xlQfYaLuP6jbSn8eR8252r8gyG4+Ax8T1nYzLcs1ygA=; b=ed2LxnUsktgNQfj8glS+USqazrNiw1X6iSK9Nf6DKieh+fF0fVcU2PSDKrpjI2RfzW JaKwygiJtHAhSL5uK3v8unBcCuintbhh9hcvXo7zXvQ2c5rzw33Xfh8FKrJXrWd40QXg Bm1mK6ArcEkpgWRDSG0KUYbuRbuGbgGtSqWXXTxFD/l0hfTj7wHsQL+hgt6uOejnMzu4 m2PMvgOyI+/BAXM80b2xzeR/Vv1ai3VgVDfgyI/hK0cMzI3dO9i5vulyCBCOzdmsmuHc 0a68c24+ThTfjqM52NjcfXgr+9awGlJ+yb6fhnNsi7mVn6AVshZcc9N7K0LpPEH2GwSr FStw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ALVw3IlJ; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 69-20020a630448000000b003fba6db1b4asi4275505pge.302.2022.05.28.12.15.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 12:15:08 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ALVw3IlJ; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6B3013055B; Sat, 28 May 2022 11:50:33 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244941AbiEYO7W (ORCPT + 99 others); Wed, 25 May 2022 10:59:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244934AbiEYO6a (ORCPT ); Wed, 25 May 2022 10:58:30 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D23AAF1ED for ; Wed, 25 May 2022 07:58:23 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: alyssa) with ESMTPSA id 6D1E11F450F4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1653490702; bh=iIq4Z4OE65fY1MUJxJmt36vci/mo0TrqzqbRmhmVVVQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ALVw3IlJ0zZ35sYa98XF05tNlJeyYalTzDhzbUAQ+yPCPe5EpdyligBS3ytbL5P2X ESgtBI6h821tZqo54pybiiWG7A6cFyHdgLOWrd9UmcT4ZDkv5KVg0qJ58FEXWKJVr2 m2lXcGK++3Z5qX1eJ8WG6MMVDk6/Xm9UB+dyw7u4/zsrjlE3X2c7VqfGON92hnXtTs r0YYA62UPBZuDI3wrHNbQ5FUzkEtlily8FMHfNgKG4FrNyEIkykhig7v0EkcmALZNh bx3R8osuxeZYDkcBSReCZLDPWM+hDCTiHYkhfPSTl+QoAyjZh6x3DfWDd3MwYEhC1s XeHBXPsth+t6w== From: Alyssa Rosenzweig To: dri-devel@lists.freedesktop.org Cc: Rob Herring , Tomeu Vizoso , Steven Price , Alyssa Rosenzweig , David Airlie , Daniel Vetter , =?UTF-8?q?N=C3=ADcolas=20F=20=2E=20R=20=2E=20A=20=2E=20Prado?= , AngeloGioacchino Del Regno , linux-kernel@vger.kernel.org Subject: [PATCH v2 6/9] drm/panfrost: Add "clean only safe" feature bit Date: Wed, 25 May 2022 10:57:51 -0400 Message-Id: <20220525145754.25866-7-alyssa.rosenzweig@collabora.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220525145754.25866-1-alyssa.rosenzweig@collabora.com> References: <20220525145754.25866-1-alyssa.rosenzweig@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=no 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 Add the HW_FEATURE_CLEAN_ONLY_SAFE bit based on kbase. When I actually tried to port the logic from kbase, trivial jobs raised Data Invalid Faults, so this may depend on other coherency details. It's still useful to have the bit to record the feature bit when adding new models. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Steven Price --- drivers/gpu/drm/panfrost/panfrost_features.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/panfrost/panfrost_features.h b/drivers/gpu/drm/panfrost/panfrost_features.h index 36fadcf9634e..1a8bdebc86a3 100644 --- a/drivers/gpu/drm/panfrost/panfrost_features.h +++ b/drivers/gpu/drm/panfrost/panfrost_features.h @@ -21,6 +21,7 @@ enum panfrost_hw_feature { HW_FEATURE_TLS_HASHING, HW_FEATURE_THREAD_GROUP_SPLIT, HW_FEATURE_IDVS_GROUP_SIZE, + HW_FEATURE_CLEAN_ONLY_SAFE, HW_FEATURE_3BIT_EXT_RW_L2_MMU_CONFIG, }; -- 2.35.1