From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (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 0401323EAA1 for ; Fri, 12 Dec 2025 06:40:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765521611; cv=none; b=BUjE5/p30wyCQtoZIm8lr/Oo40SGgWfzfPhgbg45pR3ap2TdkZl1pP8qrwACPbVvb/3UK9RR6rwMhCxLF5CKcfW06FfGZUveBbdcOi9lVLHbGJmzbq5lxT+NMXzbXr3Hut0ANfOpHmFOpW3JuWxSPWAqPk6yYH40R34FZXS33DU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765521611; c=relaxed/simple; bh=/lzw2EkpraHtItx0uRIBlL+3LUqcArpC25Y7u4No+Mg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=c85HYhqsFzGhJe68OKxX4irmHEpVLBnmg66nH26TVCxT9Thv3RowPntLr07iy+hGh3o3BVl5Fi6p0MFRfAL2syQKpDthKBMhw7a1XWeqqAFNCud6tkXMBvrB3C9p91oqPGWeiengt5G5hsSyGoIGU9rVe5hAQs9S4na/A8EU6zc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=QO2vAESx; arc=none smtp.client-ip=209.85.214.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="QO2vAESx" Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-2956d816c10so10901375ad.1 for ; Thu, 11 Dec 2025 22:40:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1765521609; x=1766126409; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=tFYcbK7L/fuI/GrrBDZKfrYBdADfjZp9qLIva811S+E=; b=QO2vAESxYryG5InihpdVbetLliisXKykjWfgGL2r8q4/5pPyRB8PaHUU8d4Qitp911 sMDuBzwr8mRX4TPEvXaPqvdx2TBhoVX76o89bpaziShImKKoroeLRd1IC5d79DEYso3p J7nh0FTaFdx2MjpOObNwKw7xSe6XFZtDhIoniWzWLgfFN6xYCqOEtrz4fxb2rMt9Nus4 PkwiZAFiRqInpMIegUyLkTqRfZOjMuWtK4cZi40rrzfXSUhQyK0jhN1LWfXYjwlFLhPL OkfShcGkCDuQqdr5vyj/9MIZKW/h5FhlHhjVijmHCWuIHYRF4DK4sJxsasCqu/jpMqZD 8OhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765521609; x=1766126409; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tFYcbK7L/fuI/GrrBDZKfrYBdADfjZp9qLIva811S+E=; b=Er3Rrqx7nOOysITHbYhG7JUTCI9JoOgfKz8Fo0U+JfvgFnEn/xCPVUzFPkEi7fwLvx g24c7Jcl5lQjflhPD1tpnAt+68yj+oexjO9dzV5EeLWUK6vhKOWBj+AuW/R0UVu1xhva egeE86ukX/UChuf/kYg+Fuhy8zNHYoK23+2Q6/DA/K5Pbyp889nfhVXrM2+uZfIv+9Xf 9lXVTqyaUocI0ICcN664eC7mRK5vRW05KaOnyVDdiq9ZIcWd81gh/KD9hzVKwMcZbG+d AFOeNfEZrGC9XAIclEYyfhOxWJyGfWCRjIKGrCdWXhQa8NOf5RjpscN+u9TEQ7tldmVt Ef6w== X-Forwarded-Encrypted: i=1; AJvYcCW7xnxmT4FpN9GwjBBtYJW/x1PyzwLx6t1g6TIvH1Pik1H7IS1RRTaZMyQQTGk6WrutSy4AD3BirGvDHrE=@vger.kernel.org X-Gm-Message-State: AOJu0YzfdDoTCtfRKnLkBCRUMIbFS8DN0R73FUkEJmfHLEAyNVQSZ9bM WSKh/1R8L35NXdF//ofoyd3pvRJ8bIzj6iIV6mroOTiTeRaPgWYwdZQUYwVhUAzUXUg= X-Gm-Gg: AY/fxX7p+hfWyxJiYyYqu4MtLDwGGSXtWYd1NMpGlWNBdIKjSBNZnDpyavMxscjl/1Z 8HHrgv2WmDKLsoPDQubYRFdqNrzBJHa9TsCjF9YXsUVIV/MN+3LNCrZT2OioGmC+WEh6MJV40wl sIjYUe6f9pTBtz/3jKMrT46N/Bq6Ah3i3cZY+TSp+QCDjV+SfeYmQjmVsz6kTx92PCxCcO/AdWP cHuUgxMgYzfXNt88I/KtwOgKzakvk4XCBGf+jdtgQnco+SxbjNvGOD9Fc/iK7Luu1JpQClsW3iS +Xl0zq8qQ+o2ZL+y0XbWHuPKvrgdalrOFYHvINmAUZwqyYH5GA76hkN34QXZ67Hb/CuPhrZAKkB qVhon0v6inH2E38QN+x8rFl0lhQt16waeWyfNALfhO4cHp8AqDPFPcwERZA96GPQndQf5WKHUcE gMNCAJhAPB X-Google-Smtp-Source: AGHT+IEPSya2f7Y38TleFBqEbmC5+occ+9/MQpEFnHQbgbfijsnQIDud3+WhbafaLoWO/lNjTfvRdg== X-Received: by 2002:a17:902:d508:b0:295:4d62:61a9 with SMTP id d9443c01a7336-29f23c677d7mr12001705ad.38.1765521609158; Thu, 11 Dec 2025 22:40:09 -0800 (PST) Received: from ziepe.ca (p99249-ipoefx.ipoe.ocn.ne.jp. [153.246.134.248]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-29ee9d38adcsm43786595ad.30.2025.12.11.22.40.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Dec 2025 22:40:08 -0800 (PST) Received: from jgg by jggl with local (Exim 4.95) (envelope-from ) id 1vTwow-0001v7-37; Fri, 12 Dec 2025 02:40:06 -0400 Date: Fri, 12 Dec 2025 02:40:06 -0400 From: Jason Gunthorpe To: Nirmoy Das Cc: will@kernel.org, robin.murphy@arm.com, joro@8bytes.org, nicolinc@nvidia.com, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH] iommu/arm-smmu-v3: Allow stream ID sharing for devices behind PCIe-to-PCI bridges Message-ID: References: <20251211133933.4128100-1-nirmoyd@nvidia.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251211133933.4128100-1-nirmoyd@nvidia.com> On Thu, Dec 11, 2025 at 05:39:33AM -0800, Nirmoy Das wrote: > ASPEED BMC controllers have VGA and USB functions behind a PCIe-to-PCI > bridge that causes them to share the same stream ID: > > \-[0005:e0]---00.0-[e1-e2]----00.0-[e2]--+-00.0 ASPEED Graphics Family > \-02.0 ASPEED USB Controller > > Both devices get stream ID(0x5e200) due to bridge aliasing. Currently this > USB controller gets rejected with "Aliasing StreamID unsupported", causing > USB timeout errors. Allow stream ID sharing when both devices are on > the same bus behind a PCIe-to-PCI bridge to fix this issue. I don't think this is right, if you actually need stream ID sharing then I seem to recall the driver needs more changes. We don't want this in general. IMHO ASPEED has wrong PCI config space and there isn't any actual PCI bus here that would force RID aliasing to worry about. I suggest going to ASPEED to find out and confirm that they don't actually share the RIDs and then let's quirk the PCI devices to disable alias generation in the first place. Also, complain to them to fix their config space to report a PCIe bridge type in future devices. :) Jason