From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6D395C43334 for ; Fri, 3 Jun 2022 15:16:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=JqANVEuo+/uJhmhtBOz7jMt4kC7G/lj6cqt1vArFTfs=; b=dhz4Co/ZqhVvaE 8bDrr/bhBDWrzQow1ydGU4kuu6VESHWR1T7LRyBnYe5RqSFA9YbJaZHCvK8aGPGphJfx0gutK2uDi ruCXYsq9+Bb5Diut6uJqdRdqmRa8xwH2n79Hip/VklbDIHLyJGMOBCVb7twC3PDnL65yCs3jGNRRc nJtHAYmpIr/CVrHd7cmsGSvZ1/aSskIA66DWToXKtSbAlXYZlRF4jQNTApl3o8Y9GFyJKq/1oKCmS Zk+YT846sSiRO1a0eQlS1kMKWhLeVwv8756CZt07Ubu39dEPPP2DPxMVAndQCN7JiZkfZs49WCgV+ X+es6F0+KzZH6UNkdNOw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nx90v-007xUt-Qg; Fri, 03 Jun 2022 15:15:01 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nx90r-007xU3-JV for linux-arm-kernel@lists.infradead.org; Fri, 03 Jun 2022 15:15:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654269294; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=KSS+WlIjCzxfASZfHJ/pG+nFg5xuEcmHlF7DakY9wuE=; b=gHFBJplnId2Pu9seQbG6osjLAfccv+oXcIKOZcCq+/cdQm7bTRpTuo1yOnZko7XG/3UiYg U/HSoBgodrd8ZquWzwkHt9j5VL4L5lzgDoYMv8unUZbCERucDQ+3jvPbK7jaCGUXV9d/yy bGm/do55U3d9i2Jq0x/PuJnajgMDXLw= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-511-NPK31-lAOgqKWp8DmMqFKA-1; Fri, 03 Jun 2022 11:14:53 -0400 X-MC-Unique: NPK31-lAOgqKWp8DmMqFKA-1 Received: by mail-qv1-f70.google.com with SMTP id o99-20020a0c906c000000b00456332167ffso5426027qvo.13 for ; Fri, 03 Jun 2022 08:14:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=KSS+WlIjCzxfASZfHJ/pG+nFg5xuEcmHlF7DakY9wuE=; b=vfein6v2ruBSPexOvE4DIKjoV8TF2rlPq9hr4PsLCWOvrvtJkg/RVZRvI2qa+s9wa5 jFyDX57WPUUCM4qTrryGjoy7kNw0dRFngFYnpd+HJuc2G+qm1bTRaYK6NW+HzFGlzOPU GeoT77NNaivYOvv95eBQVrT2538vaiLemAElH7tAZFd5LB5mi8Um4RZ8i8gFQWWsstV/ Vheo1BqXgyd3idO2EOcn0KVHNlKRi6UOohwknYZyEnBew57ioob7p/XRXqj5vED51wk7 vMMBTRrN98mv8ogC9ffCiysEQDMeiI39/KK18A9mWLtOASnuW80/MHqYAsm0GQRPYNWf wTNw== X-Gm-Message-State: AOAM531pqA7azW4EjESuqASJgvl3QqMHdoJHJu9Clg9T9QDoI3RAnjcX +DX/I2xO2hyrtnyy3t1rdG7yRz+pogfnWHHrNkIT0aobT05E7nHLLVcIUPUwoMDGnUN90MM6eoB idYoWUBI2qWQjvgJR0SMEU/Fpang2V77Rrwo= X-Received: by 2002:a05:620a:1445:b0:6a3:9f13:7f10 with SMTP id i5-20020a05620a144500b006a39f137f10mr6753073qkl.736.1654269293269; Fri, 03 Jun 2022 08:14:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYV+OzB2BFz+1kTFY3RgS+1hrEcN6pQQortBLwObPtwEpeMeMFxrV3fG5J5vUdP1DDnfWMew== X-Received: by 2002:a05:620a:1445:b0:6a3:9f13:7f10 with SMTP id i5-20020a05620a144500b006a39f137f10mr6753042qkl.736.1654269292985; Fri, 03 Jun 2022 08:14:52 -0700 (PDT) Received: from xps13 (c-98-239-145-235.hsd1.wv.comcast.net. [98.239.145.235]) by smtp.gmail.com with ESMTPSA id m28-20020a05620a215c00b006a03cbb1323sm5009016qkm.65.2022.06.03.08.14.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jun 2022 08:14:52 -0700 (PDT) Date: Fri, 3 Jun 2022 11:14:51 -0400 From: Brian Masney To: Konrad Dybcio Cc: ~postmarketos/upstreaming@lists.sr.ht, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, martin.botka@somainline.org, angelogioacchino.delregno@somainline.org, marijn.suijten@somainline.org, jamipkettunen@somainline.org, Rob Clark , Will Deacon , Robin Murphy , Joerg Roedel , linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/6] iommu/qcom: Index contexts by asid number to allow asid 0 Message-ID: References: <20220527212901.29268-1-konrad.dybcio@somainline.org> <20220527212901.29268-6-konrad.dybcio@somainline.org> MIME-Version: 1.0 In-Reply-To: <20220527212901.29268-6-konrad.dybcio@somainline.org> User-Agent: Mutt/2.2.1 (2022-02-19) Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=bmasney@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220603_081459_753502_243E41C9 X-CRM114-Status: GOOD ( 12.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, May 27, 2022 at 11:29:00PM +0200, Konrad Dybcio wrote: > From: AngeloGioacchino Del Regno > > This driver was indexing the contexts by asid-1, which is probably > done under the assumption that the first ASID is always 1. > > Unfortunately this is not entirely true: at least in the MSM8956 > and MSM8976 GPU IOMMU, the gpu_user context's ASID number is zero. > To allow using an asid number of zero, stop indexing the contexts > by asid-1 and rather index them by asid. > > Signed-off-by: AngeloGioacchino Del Regno > Signed-off-by: Marijn Suijten > Signed-off-by: Konrad Dybcio msm8974 will need this as well. Reviewed-by: Brian Masney _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel