Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp238397lqs; Mon, 4 Mar 2024 23:47:26 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXp/ByTcHdTb7Vk3Lp6epEUX5kL/HvWY5kl5dBxNkmACcBZdq7VHDx+c6DI8/4Pcuhvfy1vJes81pfZ5FT50Dssc00nsda2w0x9u3oC7A== X-Google-Smtp-Source: AGHT+IFArtL3yLDAfHKN2t8KUsHTIshUrSC4y08rTL2OQsFHUu5KBN21JX+2PukcnO42KGxPaNr0 X-Received: by 2002:a17:906:8d6:b0:a44:3056:1ed0 with SMTP id o22-20020a17090608d600b00a4430561ed0mr7406300eje.62.1709624845823; Mon, 04 Mar 2024 23:47:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709624845; cv=pass; d=google.com; s=arc-20160816; b=nji7+wnOenVHMSOTX3Ua2loHHxZGsmoHni86XNrBzMTEGODxRZGAm7bLXs/NCS0Ybq 18MEBOGgi7urMul0R80ioQlwHv/oU6nDizDwTJl5+iqmrOFjo5v6WU8x4Whp1Nxw6dFZ s88EltfMe2D8RJpTFRAFYO/2twkMKDdzfSZlgLZQHFUVgawsREmcZUco9BZiO+S6gxvq 8Yem7nCq3JwXpuiV9pwZIHjIBxMNx0tCKM/31nk7xKNpLb6zEAqoJzUtqrU1BFHEPHPK AAMmX3vD6auSl0jAcGPL5QgEgdyJ7s9QkdRHgi04fHQnwP3Moz9rMBYJM0RzDD6/Jxgb Rt3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=sZ6PvWjS312K7oq9+4hnndIA20U/xzpROGr6fX1/dbY=; fh=kQb4vRpOSb5MOBKdS7OCcV812E1+IWpW6Sy0+56N2DQ=; b=EZz4XP96XE5gRGSkz8pwOYrBkHi1J66rP+CpHJIHt38Yrto/ZSpjCiAixVFv4g5FVt vQGSWm+/Rs7J+XLkYIToKXMnurTBtX3SsH9fBkY+GqSPfjIbgs0SyAmZDr3GR8xwv0Im pPb0abcf9ymlJwNxaTUat4qAKeH2A0o/IHYrFfONQJLWy3x1zDmWRzUhfjEzIYnJ5md6 8qG4m/ZpL4a4yze2/R+KfSzoAbeaS2dAgm/YHcXfZe1SKA5gijH2sAovINSreL5E1sAr 4RPWnZTcJqTFz1mDsTwGKaWOwkjyYyNhK5uvJ3I/agRFWNxxZpQSD7OAQbcbhGUa/ZFm wU2w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ADTQ14US; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-91829-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91829-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id l8-20020a170906078800b00a44ea0ed34esi2641578ejc.911.2024.03.04.23.47.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 23:47:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91829-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ADTQ14US; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-91829-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91829-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8E98B1F21C8A for ; Tue, 5 Mar 2024 07:47:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B8D97F467; Tue, 5 Mar 2024 07:47:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="ADTQ14US" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 DBF837EF02; Tue, 5 Mar 2024 07:47:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709624826; cv=none; b=XqYoDY9s4nAqcY/ADzYcnujI6wiwH/NDMsVwEQqSFbqJp93XVfEDVYGX8XTvIM+fmybpUIgr/RP2nQWqGg8KBjwABmyhBG3XvpDCbSnI7ITNGFAf8ZV1gGA/GMd22+Roqg6YiBCvaBqOcIYj0QQfGhlDBV7b/YliLW1DgcMDf1U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709624826; c=relaxed/simple; bh=/qasr9z7u/T737mrrPguBWimHiwHsXToDQCi1g3Jtec=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=IDRjM3C/KwEs8WYM9kTQsBBwOZUo3ZPTNC+p1b1FKQE8ATJcE+l7+xa813fCZvBX+sBxw6LtRmcKBiBwcuulmrRDOSO02FNYK+29FiPnBqUsx5usuKPPlLGJ4+joizP9udL9auTO6mip6wMiGLFoQ3RLYoBuKfwziXnWbjg/OJM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=ADTQ14US; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 4255SlbA005013; Tue, 5 Mar 2024 07:46:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=sZ6PvWjS312K7oq9+4hnndIA20U/xzpROGr6fX1/dbY=; b=AD TQ14USASNroSIQ+PxwbYqop19YeVwJPO+i+P67JJmBKbeFfNaaU28OZ7dApNAQrG t/NVlZ59EI2U0X3JwH+Cb15fQIKknP5pFX3ViqwMM9pTTi4gT4xaeE5S1li7FnNF BtiDgnDDXbmh64C3jMaS63xU3MZi3bWOk7OjL9y45vnRaPXKxHtqfE0osrlavjP9 4g6QZa9DZqJaTZB65sB0LT3RDB51R8uXrEgE1/3bP+vj+y2Ri4yZB/yaj18VAgg3 DUIxW64H3eFnE1VmAHgSgXFjM833qKBVnRhLhmy20x3aRcaGUmursAf1Gws/IZS9 2TDBkPsyvw08lGNcavVQ== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wnu470f4n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 05 Mar 2024 07:46:56 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 4257ktE2017094 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 5 Mar 2024 07:46:55 GMT Received: from [10.253.74.128] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Mon, 4 Mar 2024 23:46:53 -0800 Message-ID: Date: Tue, 5 Mar 2024 15:46:50 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [virtio-dev] Re: [RFC PATCH v3 3/3] SPI: Add virtio SPI driver. Content-Language: en-US To: Harald Mommer CC: , Matti Moell , "Mikhail Golubev" , , , Viresh Kumar , "Mark Brown" References: <20240213135350.5878-1-Harald.Mommer@opensynergy.com> <20240213135350.5878-4-Harald.Mommer@opensynergy.com> <2a911f96-eed9-4adc-9043-27fd1d3a7ca2@opensynergy.com> From: Haixu Cui In-Reply-To: <2a911f96-eed9-4adc-9043-27fd1d3a7ca2@opensynergy.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: u4LG9Zb497TrCeLj3ufGMa5CefhS5TjC X-Proofpoint-GUID: u4LG9Zb497TrCeLj3ufGMa5CefhS5TjC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-05_05,2024-03-04_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 priorityscore=1501 impostorscore=0 mlxlogscore=999 malwarescore=0 suspectscore=0 lowpriorityscore=0 spamscore=0 mlxscore=0 phishscore=0 clxscore=1015 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2403050060 Hello Harald, Thank you for your detailed expatiation. To my knowledge, you took Vanilla as the front-end, and VMM is QEMU. Can you please explain further how do you test the SPI transfer without the Vanilla userspace interface? Thanks again. Haixu Cui On 3/4/2024 6:52 PM, Harald Mommer wrote: > Hello Haixu, > > no, I've not touched spidev.c. Nowhere. I took Vanilla next/stable and > applied the patches I sent. > > Run the driver as a (somewhat different but comparable) module on 6.5 on > hardware over virtio-MMIO. Probes and goes live. > > Tested on next/stable using a specially adapted QEMU version which > allows the usage of our proprietary virtio SPI device over PCI in qemu. > Probes and goes live. > > There may be other patches in the setup we're using I'm not aware of but > not this one. > > Only in case you're using some locally developed virtio SPI device on > qemu which uses PCI transport: > > SPI has ID 45. Means 0x2d. > > https://www.qemu.org/docs/master/specs/pci-ids.html > > 1af4:1040 to 1af4:10ef > >    ID range for modern virtio devices. The PCI device ID is calculated >    from the virtio device ID by adding the 0x1040 offset. ... > > lspci on qemu: > > / # lspci > ... > 00:03.0 Class 00ff: 1af4:106d > ... > > / # > > You see something like this? > > Regards > Harald > > On 04.03.24 08:11, Haixu Cui wrote: >> >> >> On 2/13/2024 9:53 PM, Harald Mommer wrote: >>> +static struct spi_board_info board_info = { >>> +    .modalias = "spi-virtio", >>> +}; >> >> Hi Harald, >>     Do you add "spi-virtio" in spidev_spi_ids in spidev.c when you >> doing the tests, to probe spidev driver? >> >> Thanks >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org >> For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org >>