From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f52.google.com (mail-io1-f52.google.com [209.85.166.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B771A15748F for ; Mon, 28 Apr 2025 23:07:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745881647; cv=none; b=OK38pDEbgHmXsD+oX3SHRdXf9EtA2JkC+v/nozSIC07Qy6smdpiLAcRzi1CqUYU5sIoxaU02TLutdxs/SAy8wFnUIrqEvTzuUcUKmmYBHLEdQsq0LSNagxraq/FLOgSAtSAO0rEg/9RRszuEsyBB3BPiaZ6t2GzToI4VrTDcoE4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745881647; c=relaxed/simple; bh=apnH3bEuRUU8KI+YFuI5iLEfzLc9vXU3H3OL8ulbcSM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=aaRFN/09x+ZW8XSiKJhJnr/P30O8hezDvvxBvd60BeK6uUcvshTrnwUFyPxcsL94s2SRqj9jrGaGQTxpIM9Uub3ydyucuxDxyxgp7Qx2//0Ua+Zb8oQ79mtpXQ/eWHwnydPtUpG/SXJPUdRKY33y5r8swQiFTw9lzgdDc1LmyvY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QZo4e2y2; arc=none smtp.client-ip=209.85.166.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="QZo4e2y2" Received: by mail-io1-f52.google.com with SMTP id ca18e2360f4ac-8616b7ad03bso91006939f.0 for ; Mon, 28 Apr 2025 16:07:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1745881645; x=1746486445; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=XPP/5KGfjBnqjCuxTaAmBO1WBCG9qi44AyjUIhX5v40=; b=QZo4e2y27m6weg7DF/PxOujhHz5t2kEHEmlbuYnkzboHrwA7+n15vEsMALsKmtFsy0 6ZJ15Yn9kircxl+6Gj+cYcbUu4bsXZYMiGAfUf3AFAfoc6skzy/jVAXHgOj2eLWCdn7z CmRl7Z8R4syyU+oMQrmPwVBX2425DroLm1Cdc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745881645; x=1746486445; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XPP/5KGfjBnqjCuxTaAmBO1WBCG9qi44AyjUIhX5v40=; b=Hx5LYXuyXgvqo9C/L7rtfRaMnWTmXrYHvoo+TsGx+jRzJ88dY/YpMpsQ7Djo3eMYr4 h1sfD3KPoGWzud6KHvr77RRayqwfSyjHeeAkMY5ojR6viSDwoSNwpOqhPPd594PNIKDZ /xbMAqz7qEEIbEMf5qce4B+5vWitsDTMRf74x3BJneT4iiUquClQmk2XnS0JfIr/SD/X UPAJ8vjA1VutclS9P4BNI8GYuAIJEVFeYQ9gYD3cLq7/e6XSmJoP/tLX1TIvref0V9u5 7pimeoIU3tCHa3D/Ghv7NtBnpg/qtIgv0Ws8xoujkU7A2u0vS6sLSOvwONO8/y8q0ikm q6mQ== X-Forwarded-Encrypted: i=1; AJvYcCVyEliYK2lfPQWqZIh4YgrxEYB4h0E+qMebviFe7WutfbOuT/+3OfnythWRBWIFJg7Cbu2tDlF/iI4=@vger.kernel.org X-Gm-Message-State: AOJu0YxgnhWgC7ftuYE/Gi80A+1KcyYoncCcqe+++JXVYAdKSGsgbSHu m+MUnDLLsZ+jePcZSfK2vHA3x7vgmzWLK9Df1rF0iXATpLXS16WiPOEkwSQsSa8= X-Gm-Gg: ASbGncukKHWcDPf0xc+pVpsTuCDIi4tsNzSTdFKtvu1y/6briesy4JRigWp8J5PwVW3 cdpFBPKEaXTz+ypLM/IY3nSQHM6UHbWBDE/aCbEptTPjsbx4Wi7B3zwio34M0ZaR6BOderDw3LQ dWKMlqJEL6XeKml5ZpAAE+DRndCmTDnqghz37DXK7KoxnOPCcc7oMi2VvA35nXEttE5lHGlgcUV i4tsUaVf+dW1DJRJYeG96QG29hq39KTaODNwzjIGdWil/R68IEXcW5gI/84QXQmMJgo0FWDuCZF 5TbKjedtn5ngWtEnvcJETA2lkrI4a79QlmBIhZx7K9dWZNr1apjKS1NUvr2ppg== X-Google-Smtp-Source: AGHT+IHQE+85TMfrsbnGODRvg4LxK3jcR91C6KwZlgnW7IxUBMmbkKOZWfg0RaAUTwvghI7wsv/I0A== X-Received: by 2002:a05:6e02:1489:b0:3d8:1fe7:4439 with SMTP id e9e14a558f8ab-3d942e05e9bmr107015395ab.17.1745881644663; Mon, 28 Apr 2025 16:07:24 -0700 (PDT) Received: from [192.168.1.14] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4f8631a1327sm31454173.142.2025.04.28.16.07.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Apr 2025 16:07:24 -0700 (PDT) Message-ID: <097ad0fd-db38-4174-8e34-4ceb485e7e23@linuxfoundation.org> Date: Mon, 28 Apr 2025 17:07:23 -0600 Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] usbip: set the dma mask to 64bit default for vhci-driver To: Greg KH , Zongmin Zhou Cc: Christoph Hellwig , i@zenithal.me, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, shuah@kernel.org, valentina.manea.m@gmail.com, Zongmin Zhou , Shuah Khan References: <3e1f8fab-0155-4ff9-800d-5fa9df88c48c@linuxfoundation.org> <20250422063409.607859-1-min_halo@163.com> <4c6660a6-29ce-4b97-b092-8fc15585e52a@163.com> <2025042512-corsage-handpick-bf2a@gregkh> <575ce02c-9128-4098-a852-d9e14f14010e@163.com> <2025042812-sinister-shaping-bded@gregkh> Content-Language: en-US From: Shuah Khan In-Reply-To: <2025042812-sinister-shaping-bded@gregkh> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 4/28/25 04:04, Greg KH wrote: > A: http://en.wikipedia.org/wiki/Top_post > Q: Were do I find info about this thing called top-posting? > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thing in e-mail? > > A: No. > Q: Should I include quotations after my reply? > > http://daringfireball.net/2007/07/on_top > > On Mon, Apr 28, 2025 at 05:51:08PM +0800, Zongmin Zhou wrote: >> Dear Greg and Shuah, >> >> I found out that the vhci-hcd driver added this virtual device >> as a platform device from the very beginning since 2014. > > Ah, I should have caught it back then, but at the time there really > wasn't another option. > >> I'm just getting in touch with this module and >> don't have a deep understanding of it,shuah should be clearer. faux_device should work fine for this. We do have to test of course. There are several examples of converting platform device to faux device. 72239a78f9f5b9f05ea4bb7a15b92807906dab71 dcd2a9a5550ef556c8fc11601a0f729fb71ead5d > > See the recent patches I did converting drivers to use the faux bus > code, it should be pretty simple to do. > >> I don't know if using the faux bus to replace the platform bus can solve the >> problem that the error limitation on max_hw_sectors for usbip device >> since commit d74ffae8b8dd applied. > > That is for the storage driver, not usbip. As the faux bus does not > have any real dma operations, this should cause it to work properly > given the default values involed, but that's up to you to test to verify > it does just that. Try it and see! > >> But this change will request user to update kernel version to support faux >> bus. > > That's just a normal kernel update to a newer version, what is wrong > with that? With one difference that the fix depends on faux_device feature - hence we can't apply it to stables. I do think it is the right direction to go to faux_device. > >> This will also be an expensive change to fix the problem? > > Fixing things properly is the correct thing to do in all cases. > Zongmin, do let me know if you are unable to make the change. thanks, -- Shuah