Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7065466imm; Tue, 28 Aug 2018 05:59:07 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZLkC9u/2idh76IZXjzTlpjXTjm1O24r0c5dMYEz269KO7iH0gL8YhNYEdhpb2jNfunRo32 X-Received: by 2002:a65:464b:: with SMTP id k11-v6mr1463495pgr.448.1535461147038; Tue, 28 Aug 2018 05:59:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535461147; cv=none; d=google.com; s=arc-20160816; b=PpDTCwS+4I3PGRiBBj1ECxvVe+9IcyAkOoaiDkNfq5USHAKxfx2/tK6FLAcZqILm0r rtD/nXeabYAYndxf7Oc97p1IKlMXSEnt1rxR6Wu09ruZddl+zKTi4iZ55sTciA4LDT7J QdVF4EAs9+yiYcfX4ZVeyEhvH4jU++meh4Kynkp2DQVtm1ZY7YEZn5s4qgD6DNNwQbSZ q1rUfsF9aCM7htiyweA+p94GEhdouhMMjErkmfGG9SDTwTchYTsD4e8taHKLs8cSee0q KTVgKLJMs8v8tTUgq0fYX6b3tU7OV4rI6kPhpEEGKbli1UjCUmq9Yfl6Jski21bC9FtI xyVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:arc-authentication-results; bh=7IhYBP565gSmsT9cNUrFfJvTEU2OYHVdrYq8ka/ryW8=; b=JE5DBeajZCcHV9aKPLrhd2MmeXWOiKf8JpBqCkxy1Qmb08iMYZogmljZ/wBKay+BFq 7D6XMjRZn3xYLJHesQpTI6yxVps6Q/gj5j617ZIUJOkCDc4yJgkCf7wYhbIQHCFMDKg9 F92Tqbl9gPdDL9S8se1cH7+A0TIH/OetlBRMR3Y2J6CTvCd7DyJIDFBYX/L5Xf6fG8mz lwmUDgi79WHqVGJfabLHe+R3KYIGL3Ef8uvhecO8MBIxWEceGRTLpwreGeiw+V5d8u8w FqdEv9eqoVMgadOntdkChw/I+jyTZ7In4BqDR0J4EakNTCSlx1WYpq/gbCoLTKiX62O6 nIxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o66-v6si993741pfb.125.2018.08.28.05.58.51; Tue, 28 Aug 2018 05:59:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727999AbeH1Qsz (ORCPT + 99 others); Tue, 28 Aug 2018 12:48:55 -0400 Received: from mail-qt0-f193.google.com ([209.85.216.193]:46995 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726998AbeH1Qsz (ORCPT ); Tue, 28 Aug 2018 12:48:55 -0400 Received: by mail-qt0-f193.google.com with SMTP id d4-v6so1460937qtn.13; Tue, 28 Aug 2018 05:57:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7IhYBP565gSmsT9cNUrFfJvTEU2OYHVdrYq8ka/ryW8=; b=oaxOEUWSbWSCMCTwBFXmip4DBh6HPPTkgaxf9o6kGRky/HO9Bz1E+mCIHmgsm4Eai0 HX3brMFb5FI8pidBvEs7hqB8FyiLVJM4hOev3ji9PZRY9cyc5kqDRk/4h5qyMiPHTmpX F7E7rLDPlT1lz5xBWAAF4pYwqxty7xVJhPxTE6XyYdB7yxGjViG6C1zaMB6vsnS+rthz kcLnR3DErDhsHdEDH8LZOS3jYfgReTuzHxIIrS3Fi5Gg4Lca1krWhBTFIAHpfMy1vr5w KUddQ9JMT32f3TY7SkNRCjtKo31B3eqWdmRgTolfS7zNkx63W2rRiavIPGsWjseqDD0W frtA== X-Gm-Message-State: APzg51BWkH8qNSHsJGRZtWWNVeJ3r3ybbypT8MnbPcBUzW5tUyJK2hkx lWUfyh2Y0bJ0igq++opI+QVsQNIbWdSPtVbdi0s= X-Received: by 2002:a0c:885b:: with SMTP id 27-v6mr1361221qvm.115.1535461041864; Tue, 28 Aug 2018 05:57:21 -0700 (PDT) MIME-Version: 1.0 References: <1535453838-12154-1-git-send-email-sunil.kovvuri@gmail.com> <1535453838-12154-11-git-send-email-sunil.kovvuri@gmail.com> In-Reply-To: From: Arnd Bergmann Date: Tue, 28 Aug 2018 14:57:05 +0200 Message-ID: Subject: Re: [PATCH 10/15] soc: octeontx2: Reconfig MSIX base with IOVA To: Sunil Kovvuri Cc: Linux Kernel Mailing List , Olof Johansson , Linux ARM , linux-soc@vger.kernel.org, gakula@marvell.com, sgoutham@marvell.com, Thomas Gleixner , Marc Zyngier , Jason Cooper , linux-pci Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 28, 2018 at 2:42 PM Sunil Kovvuri wrote: > > On Tue, Aug 28, 2018 at 5:39 PM Arnd Bergmann wrote: > > > > On Tue, Aug 28, 2018 at 12:58 PM wrote: > > > > > > From: Geetha sowjanya > > > > > > HW interprets RVU_AF_MSIXTR_BASE address as an IOVA, hence > > > create a IOMMU mapping for the physcial address configured by > > > firmware and reconfig RVU_AF_MSIXTR_BASE with IOVA. > > > > > > Signed-off-by: Geetha sowjanya > > > Signed-off-by: Sunil Goutham > > > > I think this needs some more explanation. What is the difference between > > the MSI-X support in this driver and every other one? Are you working > > around a hardware bug, or is there something odd in the implementation > > of your irqchip driver? Do you use a GIC to handle the MSI interrupts > > or something else? > > This admin function is a PCI device which is capable of provisioning > HW blocks to other PCIe SRIOV devices in the system. Each HW block > (eg memory buffer pools, NIC dewscriptors, crypto engines e.t.c) needs > certain no of MSIX vectors. Admin function has a set of 32K MSIX vectors > in memory (not on-chip) which based on HW block provisioning to a PCI device > attaches the required number of vectors to that device. Some part of this > configuration is done by low level firmware. > > RVU_AF_MSIXTR_BASE points to the memory region allocated for 32K MSIX > vectors. If kernel is booted with IOMMU enabled and admin function device > is attached to SMMU, HW will go through translation to access this MSIX > vector memory region. Hence the mapping done in this patch. Do you mean this is not a regular PCIe MSI-X interrupt to the GIC, but something internal to your device that gets routed through the IOMMU back into the device? I'm still confused. Arnd