Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2595631rwb; Sun, 6 Aug 2023 23:24:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEJAlTa5F5EvErRbkJ6OaTm76dVtVCQPv6lPI1rutWzy04U73bcv5WMNyFkbXsubHkTxr3f X-Received: by 2002:a17:906:7490:b0:99b:d580:546c with SMTP id e16-20020a170906749000b0099bd580546cmr8791046ejl.23.1691389455912; Sun, 06 Aug 2023 23:24:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691389455; cv=none; d=google.com; s=arc-20160816; b=Eal7lmvr+5wY4pG5l+si8mWDlpNfhOXJRd2D5yWVp25nbBPrt/AjUviM5dfqV25NbB hDvGjK6hA9VyeBrGqZRQ5qU89aLs30DprxDUGScZiXnh4VUAL5jej1lolM2HT4nuaUXS UMHO/FUCxAxaC6WegKeA/4qYOXKtNoJxzsKIq9MoO8dDy8MLPL8zvDrr3bpQFq+MlaUm Fb1jW6JYuNlX9ruLLnfFCy+hwpHYRpsDap0aNnt38O6qw+auxgt+7tVw9qUCMpEK3J5v h+V8h0zPQuLCFoFWhvBZhaaH5y72gBtBr0HKnmOoUKiajLCtTFQ0rATppoURb+eZnDSM 5vsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=6DCqvgwTyofPb6bMDPE1NOHrcteuDA03Ik5x9wAxAvQ=; fh=6H9pQ0PO+5vhrUu1Bgrv5lQ7QSVGPOEEvb8avXzDHkc=; b=TRCpFg3TDdIwSQx7pqv0FP028TIHMSoAD2S2fSUaoSeKuxahubCQB3PUVfv2NJa/lv DtxzzAn79VU8H+QAF+ILrCMtTPSLfX6dtAKdUMgBJEq8FMbS+A1eg4hud2fsv3xTSnQ4 ZTeY7ztvUX9ceJYUutXV2TEwe8Xec92vytbQ4Vk+V4F3nSy7JQ8OzXAD7zCoeZyOJlu6 YtIEAhEsnEb9VoZLW6dvD1QqlYYzSLOUfNZwCfwvDYjpLNejq36bngEP7DaImC7fiWnE 4jJu8H2ABM+B2XEEglx8+S8MviPQ4jUzqDulOeIaf4OvJzd72dX+/7ezFtOzaDPEQnap 5Fkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="eVO/eF3L"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jo25-20020a170906f6d900b00996d0a9b50csi5070742ejb.234.2023.08.06.23.23.51; Sun, 06 Aug 2023 23:24:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="eVO/eF3L"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230496AbjHGGBO (ORCPT + 99 others); Mon, 7 Aug 2023 02:01:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229663AbjHGGBL (ORCPT ); Mon, 7 Aug 2023 02:01:11 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A849710F6; Sun, 6 Aug 2023 23:01:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691388070; x=1722924070; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=jwXGk7MRC64IN226GiP0tz9lx55iiVvTRXLYQddOkbk=; b=eVO/eF3LjRuB3dareuqbuuo7jYmy7a2zhcQrcdxmbmApEioV+4pTA63r C+OgpVBqebhIa2lL3hUBVLCna1ixyI60klvy7U53hDva8kUSCaVBUAeyx ETVmSfjXozPExEF/wROmZtnocEu5p7KzTyVhanFpjoYQI2r/25rRjuzh6 7Jl2fmAIUCYejyaTm6BAO6P8f3PijUnAnuKgFR5xVhkDwDBKU7CzCR2j/ 3dHxuEF2tA99tZwi+yg70CXxeFyoCWtFXVmBU/lM+bjmEaXGIJ0PNVP9U X4N4zHn9ghLtBfmd4PPbOvC1JFrwFVgQUFXZVMSrckKwx6fjiLgArvWt1 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10794"; a="374132691" X-IronPort-AV: E=Sophos;i="6.01,261,1684825200"; d="scan'208";a="374132691" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Aug 2023 23:01:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10794"; a="977300981" X-IronPort-AV: E=Sophos;i="6.01,261,1684825200"; d="scan'208";a="977300981" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO [10.0.2.15]) ([10.251.209.212]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Aug 2023 23:01:07 -0700 Message-ID: <2da6c39d-cfc0-3a93-7968-ec4c1eaef52d@intel.com> Date: Mon, 7 Aug 2023 09:01:05 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.14.0 Subject: Re: [PATCH v2] scsi: ufs: ufs-pci: Add support for QEMU To: jeuk20.kim@samsung.com, "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "bvanassche@acm.org" , "avri.altman@wdc.com" Cc: "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <20230807013726epcms2p1c604cb8e98680aebebb7cc5ab2d580f5@epcms2p1> Content-Language: en-US From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki In-Reply-To: <20230807013726epcms2p1c604cb8e98680aebebb7cc5ab2d580f5@epcms2p1> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/08/23 04:37, Jeuk Kim wrote: > To ensure that the pci based QEMU ufs device properly works with linux, > register the device id (0x0013) and vendor id (0x1b36) of QEMU ufs device. > > QEMU UFS will enable testing of the UFS driver inside a virtual machine > on systems without UFS host controller. It can also be used to preemptively > implement and test new features before the real device is created. > > The new qemu ufs device can be found at > https://lore.kernel.org/qemu-devel/20230727155239.GA979354@fedora > > Signed-off-by: Jeuk Kim Acked-by: Adrian Hunter Thank you! > --- > > Since v1: > - Based on Adrian's comment, I modified the commit message to be > more detailed. > > --- > drivers/ufs/host/ufshcd-pci.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/ufs/host/ufshcd-pci.c b/drivers/ufs/host/ufshcd-pci.c > index cf3987773051..29d322931427 100644 > --- a/drivers/ufs/host/ufshcd-pci.c > +++ b/drivers/ufs/host/ufshcd-pci.c > @@ -590,6 +590,7 @@ static const struct dev_pm_ops ufshcd_pci_pm_ops = { > }; > > static const struct pci_device_id ufshcd_pci_tbl[] = { > + { PCI_VENDOR_ID_REDHAT, 0x0013, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, > { PCI_VENDOR_ID_SAMSUNG, 0xC00C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, > { PCI_VDEVICE(INTEL, 0x9DFA), (kernel_ulong_t)&ufs_intel_cnl_hba_vops }, > { PCI_VDEVICE(INTEL, 0x4B41), (kernel_ulong_t)&ufs_intel_ehl_hba_vops },