Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp362009lqh; Fri, 31 May 2024 03:50:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVN6yg6xYBy8t1yZ+kr3SivDT0h4HcnXgF1hMJNrnZP1/3DZslp89hukfQawL3H0zIXeMoQJBX0SHRl1Ze3otmtsgBhvEMPYTO/ykGrvA== X-Google-Smtp-Source: AGHT+IHNq0/kicq1PUwg6xtBdnjgOETzVAu4dfnWvdYtlHc0Uh/Yiyt2y8OaVBBtAHqDQCPsuJBj X-Received: by 2002:a17:902:f9ce:b0:1f4:b7ff:ac41 with SMTP id d9443c01a7336-1f63701f241mr12757195ad.36.1717152632175; Fri, 31 May 2024 03:50:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717152632; cv=pass; d=google.com; s=arc-20160816; b=QDwYbZ6RMVqQe+TSU7HPrF1GSKxqwzzE+UeV8/JoYX5UKI5/ufstjGVWJQopRsTX3I C1TOqf1Vs2tP09zY7/RUCsW92145JhX0vbywKLTCdoJlc7E6eWc74iY3322BaTP15+qX 0eRtaBYIyuzR10UodnGoaPR18ZKgNoU9cZeEX2wNHnE0YhQNtYeH8Xh0Sgu3yUJvi8Kv Ul0QEL2pREHJSXaQvcxJfjgd3gkM7RoMKmdSPAhH9+KutPb7mZVIZeNjpBhRYnSCFVbm jkBZ3kiUbDwesw71rbm4iJYLU9ec55dEZnWdGIRIboHGBbxgZSYnPovHQnFv3C8nDPlO LkPA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:dlp-filter:cms-type:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=AcrbxBR/K7PJ3gXtcaqiIgnaaJyMH+AxyYG1HcE+KEc=; fh=gK7FBjto+diHrgskPY1eNwAmc/UVHBuFUmF57yEsVP4=; b=orWWdZcyHvaFxtlabaY+pplhNAZ04wYZjQhIt6uGCSKUJwCKG8/qKWGj7v+t0Ofqbf HjeQN53I4UlBjGvu9vDo/Kk3JuVqAVKrX1bn/jgh2WDC0dyDkXrI/f6xo7n6K/Oj53/o m+yBlA8kJJNLeIySpcsD9SfDZCkr2fDhKEAaMr+aBsgg4g3EfMnkxTwy0LTrMau30auf 4csqyyxkGgyIs52ANroAIP030LbBIwzJMsJzcseN1lcoocrkp75pZVQnE0kQLBU4erI2 uqozP7i5Jsx/Qc+OPiSAGj/Sjs582PH5hU83yJerIyh0/4AaLfypjzjI5MjXO/Von6Fh SPCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Jw2SrlVB; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-196692-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196692-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6323debd1si13657545ad.202.2024.05.31.03.50.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 03:50:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196692-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Jw2SrlVB; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-196692-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196692-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C6DDF288FE1 for ; Fri, 31 May 2024 10:50:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 15FE8157A4E; Fri, 31 May 2024 10:49:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="Jw2SrlVB" Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) (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 8B6AF156C7B for ; Fri, 31 May 2024 10:49:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717152594; cv=none; b=PxpYczaBWIHXqixAYyRqdjYGiSVI48o6KjvCOAFrHpvDvrYsRktT8vW8HJjZBuu5et6mdBYhpXg29PMAsPE5m3SwK0DZN4Pm0HdHjBiHfCaAZZoFJuGlqLCdQatitq5I6TqpVu9vk2SDMP1/LA8UJye7g3rIYvpjxYGG5ZTVYxo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717152594; c=relaxed/simple; bh=PVahwFJO8LJfhi0Pb1DQm5Wbf1qUqfCUUYbU04fLMbQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type: References; b=M3n6mPPvRMPrVznNDs2wyVfcMag8ZAMjVAKSeAZNK6qAVfuIxMJViFgF5ar8/ewz4uNJuytm7OfiWqGqTOemGr6y3+YPSoJOCGtcGXDD/E3BdaOkiPRnEMevdXIwfgTAFPcuqHeC9FT//IOPXhBmHhmbWGyNviU7T4Pa++KTw9I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=Jw2SrlVB; arc=none smtp.client-ip=203.254.224.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20240531104949epoutp04a68bf5c3dd1dd630a963e7efb5e9d44a~UjS7FHAiE1362613626epoutp04v for ; Fri, 31 May 2024 10:49:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20240531104949epoutp04a68bf5c3dd1dd630a963e7efb5e9d44a~UjS7FHAiE1362613626epoutp04v DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1717152589; bh=AcrbxBR/K7PJ3gXtcaqiIgnaaJyMH+AxyYG1HcE+KEc=; h=From:To:Cc:Subject:Date:References:From; b=Jw2SrlVBe96l0VIwTvUvimolEx6xfoRrnxJpCIeeq+xahLWuXB1HPTfQXB2aBXnUk jcczoDobfJdoFPEPi4GqUcV0n0vIF1eXI+Waom+UsQ4kv4S/ASNzbBzsG0fyobFtBy NbNEVeS7gqHq2n27rZr+znmsUD2b/4Zo7gOsh3QY= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20240531104949epcas2p4242f84969dbb7efad96611fb0989253b~UjS6xhCtb2486524865epcas2p49; Fri, 31 May 2024 10:49:49 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.36.68]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4VrKd85ysrz4x9Pw; Fri, 31 May 2024 10:49:48 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id 2C.DC.09806.C4BA9566; Fri, 31 May 2024 19:49:48 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p3.samsung.com (KnoxPortal) with ESMTPA id 20240531104947epcas2p31961bda5ee0eb313c0d9a7d63d5461ba~UjS5Ovjpm2726827268epcas2p37; Fri, 31 May 2024 10:49:47 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20240531104947epsmtrp1d4c5ca0f6ab041d6598a2556963eaf39~UjS5ODm9R2848028480epsmtrp10; Fri, 31 May 2024 10:49:47 +0000 (GMT) X-AuditID: b6c32a47-ecbfa7000000264e-24-6659ab4ca463 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id F6.83.08336.B4BA9566; Fri, 31 May 2024 19:49:47 +0900 (KST) Received: from localhost.dsn.sec.samsung.com (unknown [10.229.54.230]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240531104947epsmtip1417f875e98bbe3be84cd9d52aa6dd9de~UjS49lsm00934709347epsmtip1J; Fri, 31 May 2024 10:49:47 +0000 (GMT) From: Minwoo Im To: "James E . J . Bottomley" , "Martin K . Petersen" Cc: Alim Akhtar , Avri Altman , Bart Van Assche , Minwoo Im , gost.dev@samsung.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Jeuk Kim Subject: [PATCH 0/3] ufs: pci: Add support UFSHCI 4.0 MCQ Date: Fri, 31 May 2024 19:38:18 +0900 Message-Id: <20240531103821.1583934-1-minwoo.im@samsung.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupjk+LIzCtJLcpLzFFi42LZdljTXNdndWSawYG1WhYP5m1js3j58yqb xbQPP5ktbh7YyWSxsZ/D4v7Wa4wWl3fNYbPovr6DzWL58X9MFs9OH2B24PK4fMXbY9qkU2we H5/eYvHo27KK0ePzJjmP9gPdTAFsUdk2GamJKalFCql5yfkpmXnptkrewfHO8aZmBoa6hpYW 5koKeYm5qbZKLj4Bum6ZOUCHKSmUJeaUAoUCEouLlfTtbIryS0tSFTLyi0tslVILUnIKzAv0 ihNzi0vz0vXyUkusDA0MjEyBChOyM+6c+sZasI694uD732wNjF9Yuxg5OCQETCQebJHpYuTk EBLYwSixcXN+FyMXkP2JUWLn5ufsEM43RomeSYeZQKpAGub++ACV2Mso8WjHRUYI5zejxLTb 95hBqtgE1CUapr5iAbFFBKolNrf/ZQMpYhboY5Jonz2fFSQhLGAp0TT3EFgRi4CqxK7fi8BW 8ArYSCx72MoGsU5eYv/Bs8wQcUGJkzOfgNUzA8Wbt85mBhkqIfCSXeLhu2Z2iIdcJCbssYHo FZZ4dXwLO4QtJfGyvw3KLpf4+WYSI4RdIXFw1m02iFZ7iWvPU0BMZgFNifW79CGiyhJHbkEt 5ZPoOPwXag+vREebEMQMZYmPhw4xQ9iSEssvvYa63UNi49YDrJDAjZV4P2kS+wRG+VlIXpmF 5JVZCHsXMDKvYhRLLSjOTU8tNiowhsdocn7uJkZwwtRy38E44+0HvUOMTByMhxglOJiVRHh/ pUekCfGmJFZWpRblxxeV5qQWH2I0BQbuRGYp0eR8YMrOK4k3NLE0MDEzMzQ3MjUwVxLnvdc6 N0VIID2xJDU7NbUgtQimj4mDU6qBye8VS94NkdjCaRvjnp2++LedlWOJur54+7zv9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emVRyt8+HQVDvps6GBQ7lfolGTp/Zpa6lOD1a d17m595IjzaRO3FTdNV+3etavlK1hq/mX9GnLUXBr/wiL+6Qen5S0rHn3LoV6cUHpn4LObSu eeuFB/52wSrhE69nKonPliteeWzrlRv2C1s4z5b32PJF/fGcoTGp1emrQeOybfUTdKID/s31 t7/6x7KzeREj24aJfoX73FfYPfe3uihdGXK0Svh4nNf+bv81SizFGYmGWsxFxYkA9Bl6mtUC AAA= X-CMS-MailID: 20240531104947epcas2p31961bda5ee0eb313c0d9a7d63d5461ba X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240531104947epcas2p31961bda5ee0eb313c0d9a7d63d5461ba References: This patchset introduces add support for MCQ introduced in UFSHCI 4.0. The first patch adds a simple helper to get the address of MCQ queue config registers. The second one enables MCQ feature by adding mandatory vops callback functions required at MCQ initialization phase. The last one is to prevent a case where number of MCQ is given 1 since driver allocates poll_queues first rather than I/O queues to handle device commands. Instead of causing exception handlers due to no I/O queue, failfast during the initialization time. Minwoo Im (3): ufs: mcq: Add ufshcd_mcq_queue_cfg_addr helper ufs: pci: Add support MCQ for QEMU-based UFS ufs: mcq: Prevent no I/O queue case for MCQ drivers/ufs/core/ufs-mcq.c | 23 +++++++++++++++++ drivers/ufs/host/ufshcd-pci.c | 48 ++++++++++++++++++++++++++++++++++- include/ufs/ufshcd.h | 1 + 3 files changed, 71 insertions(+), 1 deletion(-) -- 2.34.1