Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp539475yba; Thu, 9 May 2019 01:58:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyX/zXt6E54xKpbjvsE2KKs4etQ9gZ2uXbdP8ZBQC0LlchCN6YNXalMqvDBVSwJBHfZXvsr X-Received: by 2002:a17:902:2962:: with SMTP id g89mr3474765plb.190.1557392296604; Thu, 09 May 2019 01:58:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557392296; cv=none; d=google.com; s=arc-20160816; b=X3z1C2sp02jMjIgQRfV/yyDFYm4yDy/w3KhNIxUYGih3KKT3heLU14svkju7f0wQ3v 9dFGPnvq9HR0qyXDCJfkxhENMLos14dobZxCZM7tsgueJzXMKnsgpC9mYfzW9Z4xsIc5 zyDOklN43oFc7FWZkoHngGQ1Tb5zFK5ZwX8uEt/NJNrfQ8bo+ZimFwEtyUSKC5LaJRPR LEJCQSppc/0nLWHKnHu5GA7oqIQRtNAXy9jaDKcCze66WErB5GclN6coQqUwZAsNT6uv j/Lxc/KV+agu+l2tj+T1mrVyYKrR4g7NnQM1T4R0LwelFfduk5WDIHn/iDUFE4SSILGl KEiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=oTREYCVEPf5gwwUFB41D0IE0ku+j0l7zvMDC5xQRvT8=; b=DZ33n6rn2oGpnao+FCbulVUL1PoIUTHruqM7AS/6P2XT3Zt8M+QgAKEKlQKBVbXzAU aErWRmVyM7brjwPO3KY03tK9nS/jtxtTk/oihjsI5L2dBU9y83vDMBi2RIe3yQu41akd 9vfsl5Ion0WkMk9xrtQYxr6R3ihCarqFOMRJI514eY8Vr4VcM2cxSYjcZ+OOTu7LzrMb QW8Nk6pSIr72bC9lbVA6WtDrCmkaXvORN3+Kj8ZViqRCqKowDM6ToosOktVZZaB5JRLu 3a/gM1+kxDRSTtMmM9bfbAIpBT+fFj7wL7r6Jcu+sr8Mzb2uHS8gSR5dv8FLYZKP3JrB VMHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 5si2180221pgm.540.2019.05.09.01.57.59; Thu, 09 May 2019 01:58:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726195AbfEII5L (ORCPT + 99 others); Thu, 9 May 2019 04:57:11 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:34532 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725821AbfEII5L (ORCPT ); Thu, 9 May 2019 04:57:11 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 15E61F77F8BDA0A382E3; Thu, 9 May 2019 16:57:09 +0800 (CST) Received: from [127.0.0.1] (10.177.31.55) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.439.0; Thu, 9 May 2019 16:57:02 +0800 Subject: Re: Why do we mark vpending table as non-shareable in GICR_VPENDBASER? To: Marc Zyngier References: <867eb09i00.wl-marc.zyngier@arm.com> CC: , Christoffer Dall , wanghaibin 00208455 From: Heyi Guo Message-ID: <63414d91-2ddf-e1bb-22cf-3eb00e355fba@huawei.com> Date: Thu, 9 May 2019 16:56:57 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <867eb09i00.wl-marc.zyngier@arm.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.31.55] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks. One more question about the cacheability of VPROPBASER, which is RaWb, while it is RaWaWb for PROPBASER. Any special reason for this? Heyi On 2019/5/9 15:58, Marc Zyngier wrote: > On Thu, 09 May 2019 08:10:09 +0100, > Heyi Guo wrote: >> Hi Marc, >> >> We can see in its_vpe_schedule() the shareability bits of >> GICR_VPENDBASER are set as non-shareable, But we set physical >> PENDBASER as inner-shareable. Is there any special reason for doing >> this? If it is because the vpending table is GICR specific, why >> don't we do the same for physical pending table? > That's a good question. They should have similar attributes. > >> We have not seen function issue with this setting, but a special >> detector in our hardware warns us that there are non-shareable >> requests sent out while some inner shareable cache entries still >> present in the cache, and it may cause data inconsistent. > The main issue with the inner-shareable attributes and the GIC is that > nothing in the spec says that CPUs and GIC have to be in the same > inner-shareable domain, as the system can have as many as you want. > > You obviously have built it with GICR in the same inner-shareability > domain as the CPU. I'm happy to change the VPENDBASER attributes, > given that the CPU has a mapping to that memory already, and that > shouldn't affect systems where GICR isn't in the same inner shareable > domain anyway. > > Thanks, > > M. >