Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1720452rdb; Wed, 20 Sep 2023 18:45:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHgfRp4DriBGVl+6FuppsNfcvqkfJdcvQYklOjTbbmZ0SWlNY02GTDswXEuDZFgpOXxBoWO X-Received: by 2002:a17:90a:f687:b0:274:74ee:eda5 with SMTP id cl7-20020a17090af68700b0027474eeeda5mr4339041pjb.4.1695260757631; Wed, 20 Sep 2023 18:45:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695260757; cv=none; d=google.com; s=arc-20160816; b=u7+IRvK1XZDkUmrN3zNfpIxSMMIaoEp5fPUADibdYCeDMhYzX2HF5phWg6dxBWDsPg 1AmyH9vGuOQFbkk7A6xFf1CHAWElPn6lxC/DB/2aLYa1tjf3SiTyIfibUKAOoqmF41er JiEZZMDnGou6BMyo15tQBKYDCbAFm7iJ8zRtQ6Qls/I3Vt6scWJiuVdvfdHX4m1TyaYd iIbLU610sFiz20qSwRMF1Cpp+uFADodDLY7nrOWBmemut24gNOmIrvvov2JNTF9urapo C8PesKwG4qp7NLapFdEL9mrVEnDA9uCvWCvB/o22LBFpq7b7oFQWnS6B+vO28gWH0Wpp 8myQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=OtLxdZLEsK7Q7GBxC5GxfU2vdcctl08CnnD8McGqk8k=; fh=0bBpiqnL/UnJzFsONbE8kWKPhMcALgm1ub84qFMAFww=; b=owYdDxz+HoJezldGs20JvRuKzvShUuTiu3EjGiPew8U4PUoheOWQAdEnhLiu3xOl3w hV0Pnh3dhUHV9qMrIzZEOm+nmIKTmSPwe/4QPfS6wJk6LC5fJPRZEvqu8AeLjf1d6Da2 oOvdi1VrFTQtEz3I13d/M/J9G7QKXo3xlvZEJtU1aCY5QbokfnxlANJwqNcDiKfXFB8i 0kgJJv875R3Qh7PnqGpDqs0t+h8cKUpm3aVSIk55W/OVFJ/37Ll6HyoYDfCnyJg5Peht ABEQBATSn/XVqaagsT5WHBsWzQShq9FnHKv8iGXOqqf1IbPmrsv6rtCVjjXMcZX4Bi2j 3y3A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id n5-20020a170903110500b001c362c47f0esi366537plh.421.2023.09.20.18.45.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 18:45:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 9069982B9F91; Wed, 20 Sep 2023 18:41:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229739AbjIUBlI (ORCPT + 99 others); Wed, 20 Sep 2023 21:41:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229734AbjIUBlH (ORCPT ); Wed, 20 Sep 2023 21:41:07 -0400 Received: from Atcsqr.andestech.com (60-248-80-70.hinet-ip.hinet.net [60.248.80.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FBC8AF for ; Wed, 20 Sep 2023 18:41:00 -0700 (PDT) Received: from mail.andestech.com (ATCPCS16.andestech.com [10.0.1.222]) by Atcsqr.andestech.com with ESMTP id 38L1euGt010650; Thu, 21 Sep 2023 09:40:56 +0800 (+08) (envelope-from peterlin@andestech.com) Received: from APC323 (10.0.12.98) by ATCPCS16.andestech.com (10.0.1.222) with Microsoft SMTP Server id 14.3.498.0; Thu, 21 Sep 2023 09:40:54 +0800 Date: Thu, 21 Sep 2023 09:40:51 +0800 From: Yu-Chien Peter Lin To: Conor Dooley CC: , , , , , , , , Subject: Re: [PATCH v3 1/3] riscv: Improve PTDUMP to show RSW with non-zero value Message-ID: References: <20230920035522.3180558-1-peterlin@andestech.com> <20230920-pureblood-unwilling-f17aff1eef6a@wendy> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20230920-pureblood-unwilling-f17aff1eef6a@wendy> User-Agent: Mutt/2.2.10 (2023-03-25) X-Originating-IP: [10.0.12.98] X-DNSRBL: X-SPAM-SOURCE-CHECK: pass X-MAIL: Atcsqr.andestech.com 38L1euGt010650 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 20 Sep 2023 18:41:15 -0700 (PDT) Hi Conor, On Wed, Sep 20, 2023 at 10:55:30AM +0100, Conor Dooley wrote: > On Wed, Sep 20, 2023 at 11:55:20AM +0800, Yu Chien Peter Lin wrote: > > RSW field can be used to encode 2 bits of software > > defined information. Currently, PTDUMP only prints > > "RSW" when its value is 1 or 3. > > > > To fix this issue and improve the debugging experience > > with PTDUMP, we redefine _PAGE_SPECIAL to its original > > value and use _PAGE_SOFT as the RSW mask, allow it to > > print the RSW with any non-zero value. > > > > This patch also removes the val from the struct prot_bits > > as it is no longer needed. > > > > Could you please add cover letters to multi-patch patchsets? > > Thanks, > Conor. Sure, will do. Regards, Peter Lin