From mboxrd@z Thu Jan 1 00:00:00 1970 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 CBDAAC4332F for ; Tue, 29 Nov 2022 19:26:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236995AbiK2T0q (ORCPT ); Tue, 29 Nov 2022 14:26:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236925AbiK2T0W (ORCPT ); Tue, 29 Nov 2022 14:26:22 -0500 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B6D26D94E; Tue, 29 Nov 2022 11:23:33 -0800 (PST) Received: by mail-pl1-f180.google.com with SMTP id j12so14409137plj.5; Tue, 29 Nov 2022 11:23:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/W/iwT5LzDF68TSrdWkr3g5PqsVg1eBGpTUMNlyklIQ=; b=iWY9LrO5ej9oyEwDDDjzmlYcmaNtrMKVjiciuYzEE60j5TyUTNSX3Cr9xs4cScEYnD la0Rp/XsTosncv2z0i7ZOm251rj8JrSDc/7vl5kXZjg7PRzYczlpQzJnbxcWNE0UM4Lq n95zLT/J7fEl75dtrz40Q8+REtG1dp6UPzCOmVeev89LHjTrZUmWjTaswrU6RafVI7Lk 63euZct4z+OkwyBWvh1w1xf9QKc/lFDE7Wgrvj1mFbmUri7pKHv6q06HGNuIdEW9/C91 MA2XIgVB5fJwOEE8baP5g2ECjOUbMtvjxaF4/c6F7HGacj2O2XF+B0UfNxWQm9oe9fYE HrPg== X-Gm-Message-State: ANoB5plGL3YrqN7h2R0+++H649OiPZ1K8oWlFGcxLSl6ykf00mCnCjk8 c8w93aCHD0nyeCPNkLMEye8= X-Google-Smtp-Source: AA0mqf7Y792+qhzDAjgHcbYP2sthtrZj3JyK4yknOEUznVZwBQDAgvuvHYwRwwOgAsLS6mPomrykcg== X-Received: by 2002:a17:90b:1217:b0:213:36b7:1b77 with SMTP id gl23-20020a17090b121700b0021336b71b77mr66637468pjb.94.1669749812793; Tue, 29 Nov 2022 11:23:32 -0800 (PST) Received: from ?IPV6:2620:15c:211:201:7d15:8e62:30bb:9a14? ([2620:15c:211:201:7d15:8e62:30bb:9a14]) by smtp.gmail.com with ESMTPSA id a28-20020aa795bc000000b00560cdb3784bsm10270626pfk.60.2022.11.29.11.23.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Nov 2022 11:23:32 -0800 (PST) Message-ID: <1d0f6a93-18f2-44b5-c99c-1fc1163aa1fa@acm.org> Date: Tue, 29 Nov 2022 11:23:29 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH v7 08/16] ufs: core: mcq: Allocate memory for mcq mode Content-Language: en-US To: Asutosh Das , quic_cang@quicinc.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: quic_nguyenb@quicinc.com, quic_xiaosenh@quicinc.com, stanley.chu@mediatek.com, eddie.huang@mediatek.com, daejun7.park@samsung.com, avri.altman@wdc.com, mani@kernel.org, beanhuo@micron.com, linux-arm-msm@vger.kernel.org, Alim Akhtar , "James E.J. Bottomley" , Krzysztof Kozlowski , Arthur Simchaev , Jinyoung Choi , Kiwoong Kim , open list References: <6cfdcaf0bcf8f9a4e5680aff0b7be04c4bc7efc9.1669747235.git.quic_asutoshd@quicinc.com> From: Bart Van Assche In-Reply-To: <6cfdcaf0bcf8f9a4e5680aff0b7be04c4bc7efc9.1669747235.git.quic_asutoshd@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On 11/29/22 10:53, Asutosh Das wrote: > To read the bqueuedepth, the device descriptor is fetched > in Single Doorbell Mode. This allocated memory may not be > enough for MCQ mode because the number of tags supported > in MCQ mode may be larger than in SDB mode. > Hence, release the memory allocated in SDB mode and allocate > memory for MCQ mode operation. > Define the ufs hardware queue and Completion Queue Entry. Reviewed-by: Bart Van Assche