lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <50ac3b6b-7d96-ca7e-637a-109e29e74911@intel.com>
Date:   Tue, 31 Oct 2023 11:23:14 -0500
From:   Lijun Pan <lijun.pan@...el.com>
To:     'Guanjun' <guanjun@...ux.alibaba.com>, <dave.jiang@...el.com>,
        <dmaengine@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
        <vkoul@...nel.org>, <tony.luck@...el.com>, <fenghua.yu@...el.com>
CC:     <jing.lin@...el.com>, <ashok.raj@...el.com>,
        <sanjay.k.kumar@...el.com>, <megha.dey@...el.com>,
        <jacob.jun.pan@...el.com>, <yi.l.liu@...el.com>,
        <tglx@...utronix.de>
Subject: Re: [PATCH v4 2/2] dmaengine: idxd: Fix incorrect descriptions for
 GRPCFG register



On 10/30/2023 9:55 PM, 'Guanjun' wrote:
> From: Guanjun <guanjun@...ux.alibaba.com>
> 
> Fix incorrect descriptions for the GRPCFG register which has three
> sub-registers (GRPWQCFG, GRPENGCFG and GRPFLGCFG).
> No functional changes
> 
> Signed-off-by: Guanjun <guanjun@...ux.alibaba.com>
> Reviewed-by: Dave Jiang <dave.jiang@...el.com>
> Reviewed-by: Fenghua Yu <fenghua.yu@...el.com>
> ---

Acked-by: Lijun Pan <lijun.pan@...el.com>

>   drivers/dma/idxd/registers.h | 12 +++++++-----
>   1 file changed, 7 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/dma/idxd/registers.h b/drivers/dma/idxd/registers.h
> index 7b54a3939ea1..315c004f58e4 100644
> --- a/drivers/dma/idxd/registers.h
> +++ b/drivers/dma/idxd/registers.h
> @@ -440,12 +440,14 @@ union wqcfg {
>   /*
>    * This macro calculates the offset into the GRPCFG register
>    * idxd - struct idxd *
> - * n - wq id
> - * ofs - the index of the 32b dword for the config register
> + * n - group id
> + * ofs - the index of the 64b qword for the config register
>    *
> - * The WQCFG register block is divided into groups per each wq. The n index
> - * allows us to move to the register group that's for that particular wq.
> - * Each register is 32bits. The ofs gives us the number of register to access.
> + * The GRPCFG register block is divided into three sub-registers, which
> + * are GRPWQCFG, GRPENGCFG and GRPFLGCFG. The n index allows us to move
> + * to the register block that contains the three sub-registers.
> + * Each register block is 64bits. And the ofs gives us the offset
> + * within the GRPWQCFG register to access.
>    */
>   #define GRPWQCFG_OFFSET(idxd_dev, n, ofs) ((idxd_dev)->grpcfg_offset +\
>   					   (n) * GRPCFG_SIZE + sizeof(u64) * (ofs))

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ