Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B80B9C636D4 for ; Thu, 16 Feb 2023 00:51:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229622AbjBPAvw (ORCPT ); Wed, 15 Feb 2023 19:51:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229605AbjBPAvu (ORCPT ); Wed, 15 Feb 2023 19:51:50 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FC512E0FF; Wed, 15 Feb 2023 16:51:47 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id x40so807800lfu.12; Wed, 15 Feb 2023 16:51:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=CE4xiLmA9VQyI91JLYE61lSZLDddIMxME/1xb4rDChM=; b=FFLdjQhRgM6nTbQB//R6Ov520KvRlsMBttV4XYizVX39hkJ17stscJ2kC/2F2SsrCq zzq01UwVC+BCJMnRmPiD03D5wBwCb9Bp63al7ELpY7QH9RQGTii1g8BQqZW/Lef5ONzy cXb4Q+LhJcxSCgw7uqtQ3qcW9cr0H1CXxR/xnYulcpcdtUi1a0gUYbO5xhkapjocfD3N pHMPw6tua4wDOimnbnizgpTuLSb3lU9PMlgjWvPspCi5NcyFw7ilbD8F1apRwhPaeR18 QsNtyYsZlwFP5S2G8irueAl/C/1zyZlwQmGKbuJ5NoR+7lr64oL36LY8xUStwa6D6a3G M97Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CE4xiLmA9VQyI91JLYE61lSZLDddIMxME/1xb4rDChM=; b=A+HRGxYHW78YPGV8PGUUhYQCYIUwtjJdGf9rPYZxjqyVGkbkBcpfOzfCtpBfSVQBbX 4313KWXdzTn6uQrzwsvgD8N6FfsfrRmEHt9+VVBRIb2hyjNiyLog1nFjb1jOuDJKrADD qnqAZsydYkaddXQ7L3rmWuwobVvcvuPChsCbmPD/WQyPRQyDR4KOctEBPBj4xHrJ0xNC SYpYgfT2i+VvaFlLDHvN4vjqDnhqx42U+hvVWY8kHIfl7Al+mgNk0djsgi+GS+yQh5Au BNQoNvCZzsxaLvIZFokLMDL2rV1wF9G00GZbBCN/paGN68o0GGiX5Y0xTRVJYpCirdx7 KrQQ== X-Gm-Message-State: AO0yUKWJD3zLL9eQroR9Nr/vFDwSHDWcqUPZQbvMwMrDlooKwSBUELyP NyyoViro2/SZeR+2L9pyeoZDYCqJ2g+wuwYJFg== X-Google-Smtp-Source: AK7set8xhRSu9owX2yBWOpqwdcAalnQf6+Nf6OvAqzeeso7SajB/K2u/G+Hz53aTuLqRNuI6D5TYWnUmksvLC5x4tl0= X-Received: by 2002:a05:6512:4c6:b0:4d5:ca32:6ae0 with SMTP id w6-20020a05651204c600b004d5ca326ae0mr1100720lfq.0.1676508705519; Wed, 15 Feb 2023 16:51:45 -0800 (PST) MIME-Version: 1.0 References: <20230215123750.15785-1-powen.kao@mediatek.com> In-Reply-To: <20230215123750.15785-1-powen.kao@mediatek.com> From: Stanley Chu Date: Thu, 16 Feb 2023 08:51:33 +0800 Message-ID: Subject: Re: [PATCH 1/2] scsi: ufs: core: Fix mcq tag calcualtion To: Po-Wen Kao Cc: Alim Akhtar , Avri Altman , Bart Van Assche , "James E.J. Bottomley" , "Martin K. Petersen" , Matthias Brugger , wsd_upstream@mediatek.com, peter.wang@mediatek.com, stanley.chu@mediatek.com, alice.chao@mediatek.com, chun-hung.wu@mediatek.com, cc.chou@mediatek.com, chaotian.jing@mediatek.com, jiajie.hao@mediatek.com, mason.zhang@mediatek.com, quic_asutoshd@quicinc.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 15, 2023 at 8:38 PM Po-Wen Kao wrote: > > Transfer command descriptor is allocated in ufshcd_memory_alloc() > and referenced by transfer request descriptor with stride size > sizeof_utp_transfer_cmd_desc() > instead of > sizeof(struct utp_transfer_cmd_desc). > > Consequently, computing tag by address offset should also refer to the > same stride. > > Signed-off-by: Po-Wen Kao Reviewed-by: Stanley Chu