Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4224736rwl; Mon, 3 Apr 2023 01:35:23 -0700 (PDT) X-Google-Smtp-Source: AKy350ayDpk2cT/xaA+hQxaqVUNfyAgTGPV7yIYMoPA1jZbn9zWVqiNz7B0ln5Va7k8/ffGU9Nw0 X-Received: by 2002:a17:90b:3851:b0:23d:4e9d:2eb0 with SMTP id nl17-20020a17090b385100b0023d4e9d2eb0mr39545578pjb.36.1680510922955; Mon, 03 Apr 2023 01:35:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680510922; cv=none; d=google.com; s=arc-20160816; b=dRfqe0s9yj3ZM6NQS3Ap+TxwQLYs7VmvXL6rZ0O5oCOEOSJYVjL3vJvGR0bT0ivJCr uPo0VbjoPVGht4Mq4MnwyYbJYWnez47WFyiW9NfiRwT8P4ixkv9eP81J0uLuqQvQH2Vn h/jAVX3zdkETA5FBe5xTtVfaThqfLHuMh/s/22X+p85DTrujgWmu7+/R+YU/J7n1p8we JHYar0SdWqqGCgSnJ90rs4uhPTLVa8Gw0K/43oaFo3KAMvgyLizqT4ZpRtKXqTMjeEWQ kapeElFv5DP9G+z/17Wu8rU/2mqkXUjRCuaA71ltQ5er+DrUesli9XpEDX5oFXyTb3X4 9qMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xnEiQTscpIo7GZszaMLdFxd1zQaSpGQXiMZGTNSYqNE=; b=F+YCyUTnbVmGjW3ZlT3ViK+DIM+Y6WYhKFzzmygU0d0FMQ/YMxr4hIiGvEIP0lQRGM OIMD2aGuf2c5ZC+HW9YL18BJnE08vRRqQ/bQ8zA9+YSBX7tVIL33s1asvhS7UgWMQ7ZB TbKyDusEHbszs/oxD9DDDDx6mnfbp4g9tQLoHcH6f/YZ/v38R9CobuEoQ1IE07A8g09u qXckVSZqEc2jf1BUR2x0ptteoBExTQHXx6WtpruzstnhggmElfNkCthAlweAGZ224Y8x ZkuWlnVtuBaAcwe3zP8YMvJn8EN2tx1S2RdcQn/9YjO5LjAjotffaPFz6ibIg7KoAu1T 54vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L2iHxjeX; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d13-20020a631d0d000000b005034a5a0a58si7321337pgd.434.2023.04.03.01.34.59; Mon, 03 Apr 2023 01:35:22 -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=@kernel.org header.s=k20201202 header.b=L2iHxjeX; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231835AbjDCIcb (ORCPT + 99 others); Mon, 3 Apr 2023 04:32:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231585AbjDCIca (ORCPT ); Mon, 3 Apr 2023 04:32:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A7C9524D for ; Mon, 3 Apr 2023 01:32:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 978A161633 for ; Mon, 3 Apr 2023 08:32:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EDF8EC433D2; Mon, 3 Apr 2023 08:32:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680510743; bh=sU8bXmwTk2RS7zLLyrZOKwV1vzQHYYZlV0f4wQU4Xlw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=L2iHxjeXsyhhjl8NfcneqxqreyNX/YJG3n6ZKYkdI8krSIXnbid0bvcqEzfhLGg+o 0SBmWLr99z6jmj6CB9W250CRT7Nx9KP6GzLK6zekiGxnszAk8ci0REw+tFb9WE5cvU zerdv1w0s/oUvZfHIKxIyF6vDojEeu4Zn0b1+olbPeuJG3ClB3buf1Xb9YiIoZBodD mIbocCyHLXXzy+iT1afB185ehB6wh2XwApO0wxoOeij98cHGyIFgDwYReZr21rTG2k pZGxw6HF/cvBpGfhDvlWJw7nfLwVXQCkEs+EMSIBo1ZJcv3YRKi9hDmGA3W7NzFqcb J3oyI1vgxuyRg== Date: Mon, 3 Apr 2023 10:32:18 +0200 From: Lorenzo Pieralisi To: Peng Fan Cc: Marc Zyngier , "linux-kernel@vger.kernel.org" Subject: Re: gic700 shareability question Message-ID: References: <868rfdw797.wl-maz@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 On Mon, Apr 03, 2023 at 01:36:31AM +0000, Peng Fan wrote: > Hi Marc, > > > Subject: Re: gic700 shareability question > > > > + Lorenzo > > > > On Tue, 28 Mar 2023 13:48:19 +0100, > > Peng Fan wrote: > > > > > > Hi Marc, > > > > > > We have an SoC that use GIC-700, but not support shareability, > > > > Define this. The IP does support shareability, but your integration doesn't? > > > > > Currently I just hack the code as below. Do you think it is feasible > > > to add firmware bindings such that these can be used to define the > > > correct shareability/cacheability instead of relying on the > > > programmability of the CBASER register? > > > > > > Saying with "broken-shareability", we just clear all the shareability > > > settings. > > > > This is the same thing as the Rockchip crap, so you are in good company. > > > > I've repeatedly stated that this needs to be handled: > > > > - either by describing the full system topology and describe what is > > in the same inner-shareable domain as the CPUs, which needs to > > encompass both DT and ACPI (starting with DT seems reasonable), > > > > We will give a look on this. But honestly not have a good idea on how. It is a longer term fix for the issue, we are looking into this. > > - or as a SoC specific erratum, but not as a general "sh*t happened" > > property. > > I will ask the hardware team to create an errata. > > > > AFAIK, Lorenzo is looking into this. > > Lorenzo, are you working on this? Yes it is being worked on, that does not prevent though an errata workaround to be applied, firmware bindings definitions can take a while to sort out. Lorenzo