From mboxrd@z Thu Jan 1 00:00:00 1970 From: Will Deacon Subject: Re: [PATCH v4] iommu/arm-smmu: Support for Extended Stream ID (16 bit) Date: Thu, 19 Jan 2017 16:13:31 +0000 Message-ID: <20170119161331.GG31594@arm.com> References: <20170119143653.7576-1-aleksey.makarov@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20170119143653.7576-1-aleksey.makarov-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Aleksey Makarov Cc: Tomasz Nowicki , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: iommu@lists.linux-foundation.org On Thu, Jan 19, 2017 at 05:36:36PM +0300, Aleksey Makarov wrote: > It is the time we have the real 16-bit Stream ID user, which is the > ThunderX. Its IO topology uses 1:1 map for Requester ID to Stream ID > translation for each root complex which allows to get full 16-bit > Stream ID. Firmware assigns bus IDs that are greater than 128 (0x80) > to some buses under PEM (external PCIe interface). Eventually SMMU > drops devices on that buses because their Stream ID is out of range: > > pci 0006:90:00.0: stream ID 0x9000 out of range for SMMU (0x7fff) > > To fix above issue enable the Extended Stream ID optional feature > when available. > > Reviewed-by: Tomasz Nowicki > Signed-off-by: Aleksey Makarov > Tested-by: Tomasz Nowicki > --- > v4: > change the commit message: > - explain the reason why the warning happens (Tomasz Nowicki) > - add 'Reviewed-by' and 'Tested-by' from Tomasz Nowicki Thanks, I'll queue this for 4.11. Will From mboxrd@z Thu Jan 1 00:00:00 1970 From: will.deacon@arm.com (Will Deacon) Date: Thu, 19 Jan 2017 16:13:31 +0000 Subject: [PATCH v4] iommu/arm-smmu: Support for Extended Stream ID (16 bit) In-Reply-To: <20170119143653.7576-1-aleksey.makarov@linaro.org> References: <20170119143653.7576-1-aleksey.makarov@linaro.org> Message-ID: <20170119161331.GG31594@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, Jan 19, 2017 at 05:36:36PM +0300, Aleksey Makarov wrote: > It is the time we have the real 16-bit Stream ID user, which is the > ThunderX. Its IO topology uses 1:1 map for Requester ID to Stream ID > translation for each root complex which allows to get full 16-bit > Stream ID. Firmware assigns bus IDs that are greater than 128 (0x80) > to some buses under PEM (external PCIe interface). Eventually SMMU > drops devices on that buses because their Stream ID is out of range: > > pci 0006:90:00.0: stream ID 0x9000 out of range for SMMU (0x7fff) > > To fix above issue enable the Extended Stream ID optional feature > when available. > > Reviewed-by: Tomasz Nowicki > Signed-off-by: Aleksey Makarov > Tested-by: Tomasz Nowicki > --- > v4: > change the commit message: > - explain the reason why the warning happens (Tomasz Nowicki) > - add 'Reviewed-by' and 'Tested-by' from Tomasz Nowicki Thanks, I'll queue this for 4.11. Will From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753613AbdASQNx (ORCPT ); Thu, 19 Jan 2017 11:13:53 -0500 Received: from foss.arm.com ([217.140.101.70]:57228 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753418AbdASQNc (ORCPT ); Thu, 19 Jan 2017 11:13:32 -0500 Date: Thu, 19 Jan 2017 16:13:31 +0000 From: Will Deacon To: Aleksey Makarov Cc: iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Robin Murphy , Tomasz Nowicki , Joerg Roedel Subject: Re: [PATCH v4] iommu/arm-smmu: Support for Extended Stream ID (16 bit) Message-ID: <20170119161331.GG31594@arm.com> References: <20170119143653.7576-1-aleksey.makarov@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170119143653.7576-1-aleksey.makarov@linaro.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 19, 2017 at 05:36:36PM +0300, Aleksey Makarov wrote: > It is the time we have the real 16-bit Stream ID user, which is the > ThunderX. Its IO topology uses 1:1 map for Requester ID to Stream ID > translation for each root complex which allows to get full 16-bit > Stream ID. Firmware assigns bus IDs that are greater than 128 (0x80) > to some buses under PEM (external PCIe interface). Eventually SMMU > drops devices on that buses because their Stream ID is out of range: > > pci 0006:90:00.0: stream ID 0x9000 out of range for SMMU (0x7fff) > > To fix above issue enable the Extended Stream ID optional feature > when available. > > Reviewed-by: Tomasz Nowicki > Signed-off-by: Aleksey Makarov > Tested-by: Tomasz Nowicki > --- > v4: > change the commit message: > - explain the reason why the warning happens (Tomasz Nowicki) > - add 'Reviewed-by' and 'Tested-by' from Tomasz Nowicki Thanks, I'll queue this for 4.11. Will