Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp344461lqh; Fri, 31 May 2024 03:09:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVyKe5oBY+Nso45DZXmKwev1+ZfucJK8r0RUFmy+SBNts4V+jwju7wE0k0A6r8qkSOKTQDc3CzW2RSRaqGrzMWhTd2QQ5xCepW3+LqrRA== X-Google-Smtp-Source: AGHT+IFL0yb2Texr0MyKvmbsGKpVDnooO0oM19H7xw6iXgS33U21cmM40D3+/GJ0nRfJSbe5Nn66 X-Received: by 2002:a05:6214:4907:b0:6ae:aa:3fef with SMTP id 6a1803df08f44-6aecd6cef1amr14962916d6.48.1717150154320; Fri, 31 May 2024 03:09:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717150154; cv=pass; d=google.com; s=arc-20160816; b=NdEDNjyn/PYLMDjTXNANYwhI4FP3RP6ehOqMIkLtBFdExHyQUJraj2qZwlOgsZAofD 4cdIXlFvKdXMvhSspPZ5IwbK6fYvF4qJAYDdrJg94Q3omJ659IUiuFz89An2qKvVaM+e oX8H3/+PoRxbYYYmd9pJAXp3tjWUuZY8+cBSn1nkvR/i1kZ+uQtoDfanzo6dBkYk/PgX LrdAoZccuexJ9Vu9yDltCSsGVHxA0L0sLWXILmsnhxIUMUQHiAnxkCjOUS+8tzxQqAb2 YLllTQf3C3tk/IjSwA1HBQkNUOuNfz3Wh0uBs6+T6XCzJWAbP5NaPxAhZyjq/FXro4eN R82A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id; bh=hsMMetsPGTYNfDD/fS2Q/u/3klKL1L2zZFYKlo2XZdo=; fh=exzbQKW0ovrSTdFwn2DPtIft/+vU3jBqc8lZtQAfytM=; b=YkTPT5qOFZrhBMln34KCxIDl7KNK5W8Uylj+HjjbJuGs8umVrYeoD27qhCXfI5ir0J f4jQxow3sGKEUy5J8zMIlBWQ6ApOZBp4K1lY4IWY2ZGQ3nP9TkkgZktYarWlzxNCflei XbUMyxhPzyk6cMI2SQfVs0wNZWgCO3SI1thnuns9SmotKUnxpY2WRHCpOfKtyRTsNzfA eStDLYfgET5Q9+mpmuNxdrVBu6fXXNxIL9f6AWGIbR9Zibb0IZNRPEhtdTg4sb3jqzAy OJru8bclCPQJ3ah8jRHXZsB1brWrW/F5/cVn5v8NPR38sRgP7EdR+echSBIqiD3wJLn9 UZmQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-crypto+bounces-4602-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4602-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b412718si16769706d6.322.2024.05.31.03.09.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 03:09:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4602-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-crypto+bounces-4602-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4602-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 085D51C21B11 for ; Fri, 31 May 2024 10:09:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C27971422DA; Fri, 31 May 2024 10:09:10 +0000 (UTC) X-Original-To: linux-crypto@vger.kernel.org Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9D88B1514C9; Fri, 31 May 2024 10:09:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717150150; cv=none; b=ObSNWx6goCqavKtVKuqgO8TGoco8US398E3zUnMckyh3SBDkyVbJeD4ongide46CRbNjgbtAqOnn7+++0s+wiwnVxvSnnTSwNeO32RLZKsrUM6HzYRtgWDgfNRp5DR8GRYjCdgny1evgCYlJuUi4+aYet3tTX1EKBwbBPSZEU/g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717150150; c=relaxed/simple; bh=XF4il905GMY808BbBdZMyijfqf/CpyqJ+mtFoZOf7GM=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=CVSerbwS26M8VFAcmEamlpPXUfifa2sHfUMEw2PvZRyA7GAJ06KmGUY93ksllwDTJAdzqeUwT7VvOS5OKgs1eU0MmZkUDZHEP/k+k0Tu1bki3dQlUXpXlP6db17rFXXnHpXjRF8szJLYnprr92+jLShfT6DadP5cvV2ac42g8fY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.189 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.252]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4VrJfT043VzPpBF; Fri, 31 May 2024 18:05:53 +0800 (CST) Received: from kwepemi500025.china.huawei.com (unknown [7.221.188.170]) by mail.maildlp.com (Postfix) with ESMTPS id E114918007A; Fri, 31 May 2024 18:09:04 +0800 (CST) Received: from [10.67.120.171] (10.67.120.171) by kwepemi500025.china.huawei.com (7.221.188.170) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Fri, 31 May 2024 18:09:04 +0800 Message-ID: Date: Fri, 31 May 2024 18:09:03 +0800 Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] crypto: hisilicon/zip - optimize the address offset of the reg query function To: Herbert Xu CC: , , , , , References: <20240506115953.2282155-1-huangchenghai2@huawei.com> <20240506115953.2282155-3-huangchenghai2@huawei.com> From: huangchenghai In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemi500025.china.huawei.com (7.221.188.170) 在 2024/5/31 17:33, Herbert Xu 写道: > On Mon, May 06, 2024 at 07:59:53PM +0800, Chenghai Huang wrote: >> @@ -807,6 +786,18 @@ static int hisi_zip_regs_show(struct seq_file *s, void *unused) >> >> DEFINE_SHOW_ATTRIBUTE(hisi_zip_regs); >> >> +static void __iomem *get_zip_core_addr(struct hisi_qm *qm, int core_num) >> +{ >> + u32 zip_comp_core_num = qm->cap_tables.dev_cap_table[ZIP_CLUSTER_COMP_NUM_CAP_IDX].cap_val; >> + >> + if (core_num < zip_comp_core_num) >> + return qm->io_base + HZIP_CORE_DFX_BASE + >> + (core_num + 1) * HZIP_CORE_ADDR_INTRVL; >> + >> + qm->io_base + HZIP_CORE_DFX_DECOMP_BASE + >> + (core_num - zip_comp_core_num) * HZIP_CORE_ADDR_INTRVL; >> +} >> + > This doesn't even build. I'm so sorry, I forgot to build it. I'll build and verify it carefully next time. The second version will be corrected and send soon. Thanks, ChengHai