Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp6266316rwb; Tue, 9 Aug 2022 12:04:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR42R2VKbKrzXGtjZMxNkNFMro+469Lptef357xNgE6tFa1kkSGD2ZLtxomKFreOlfqzloAy X-Received: by 2002:a17:903:11c7:b0:170:a74e:3803 with SMTP id q7-20020a17090311c700b00170a74e3803mr10706315plh.156.1660071844514; Tue, 09 Aug 2022 12:04:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660071844; cv=none; d=google.com; s=arc-20160816; b=ld6Z48k7YTd/HCoqAQPZXBoEzKYJ0lZS/1UIclfSsRV4HYUF0e2TCyoXSfZVXXw5hf Rc+x10vkGaNp0QthrGaU7/aaTyWQzpwK8kraNqrVH185QIEfizc+ACTG2rcVJaGplWy9 W5VQ9wSXccONUu4F6ru5zYSQANi1wd7e+895t66L2O82B0AeqjSGVjQ82TTUTHD8Fijk GPyye3vDbSwTAtJkuxudbQ7rKpQ/GlE6kWeHw54qZrscp/PmNRgctZyRq39gJCYmpdwG oCwwEesD7Cpxh4Xvw2RwnSKPyZpYVJtOadGJDzM0n04hzMLnjD5HmlUp5DqCc4aqgVzZ QDUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :dkim-signature; bh=OLEpCC27T32C/7NrBkt44Xp3IZO7vGnlk4eYOP8rEvo=; b=KgPPxexI+R0YmwGJ2+G1gvuzFG6i6w/8csyuqGb/5PYTH49FOPO/CofYykKyExN8n7 3KcBdMQeSfivIbBbut8KbDr+s7IE7Np/LYYXsMgXY0racrc2Uc5TWOiCzVCrlPhk/E62 bhWiTFr1MqGoeliyzaIK8tZFfifGCotrjIorquiMQYnb7Ppt9yQJxEADjzT7jWyWVPqt +T4pJF7DhQyL7prwjKTotj4d3fxwRrHqP2XYzBlk1Y4XCLVjPihfZNh4mGiCtOQuowsG twhSRTqCgkshgNtjx5G8cgf/SSOnCtub1YZ6oQ/NXkijHmimnh/c8qm+YpCef82Slugl TgDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=ryFUKd5u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a2-20020a170902ecc200b0016bde60cc84si17080644plh.355.2022.08.09.12.03.38; Tue, 09 Aug 2022 12:04:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=ryFUKd5u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239931AbiHISB6 (ORCPT + 99 others); Tue, 9 Aug 2022 14:01:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245468AbiHISBg (ORCPT ); Tue, 9 Aug 2022 14:01:36 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E2FF26574 for ; Tue, 9 Aug 2022 11:00:57 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id k13-20020a056902024d00b0066fa7f50b97so10132066ybs.6 for ; Tue, 09 Aug 2022 11:00:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:mime-version:message-id:date:from:to:cc; bh=OLEpCC27T32C/7NrBkt44Xp3IZO7vGnlk4eYOP8rEvo=; b=ryFUKd5uBQ2+aNk7sYR9KZZ74RoKc9IpQDLCinEpIuhwQtE4vRxUzUmVSy+0Y2/o5J TxfoLNb2zgM2SZFuDyV0Gvmg6Dwgexrp/ozaojZecEs0UdhV2i9dwqZojJbkyaoIM1W9 U/3XYnW7/YJruCZNxSVoUQYNoLisjP8IGY6VxNypLiN/B6io8fFuFZITM2ij6Oic0dLt 9i1VIxDwyZ8jhai0uhD82HpDxU1rIRD0redZv1ccFsj0OZ5fFKfVx9nqUToMVFs9r2+s EmcY3IT63/5MTFcw+AX61DUHeb/BSEuT5QaSDYVTIixNcmWLtlZ4ZbMn2roH2L3s7LAt qkeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc; bh=OLEpCC27T32C/7NrBkt44Xp3IZO7vGnlk4eYOP8rEvo=; b=DAhJZhZHKXJJ2Injndm11TWKWnM+mjUCGwRSkkBe2YhUTrrTCK7mxJ0v0lYP3e5DGd LWG8lzcoUWx9gfXsk5MhJwasBdsDxdZ6SCALSI0Uazs6G9jHHuejjDGewmGAvSph9kfd sf23nuDrTKGo4uGhAjDJlsjP1vLGuRHhyi6sqi8kxeQCxzV2bVDWv6J7SJEa9WZPm7Hx JnGRtxWo7UesCCHQgbWYkh5loGjXFOkqFQ5o/V3azNfXVqDrpF47HZO3PQnfXpp9GPvu TY5IQoAw9kfJ9iWwMGmIjnanW7RnMVz56er4LPvN/GBiZDSymVkpJLRIvwUbxKZP6iJR wphA== X-Gm-Message-State: ACgBeo0JPKzfcNdnxlqLjpPg9oIQxELnMKI6y1xZho7wALckBqm+Ijay bnlmk8cqeG1YOeHCtozg/g/jzLdb+3srC/3ih1c= X-Received: from wmcvicker.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5ebe]) (user=willmcvicker job=sendgmr) by 2002:a0d:ebc9:0:b0:31f:474a:4264 with SMTP id u192-20020a0debc9000000b0031f474a4264mr24550636ywe.269.1660068056405; Tue, 09 Aug 2022 11:00:56 -0700 (PDT) Date: Tue, 9 Aug 2022 18:00:48 +0000 Message-Id: <20220809180051.1063653-1-willmcvicker@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.37.1.559.g78731f0fdb-goog Subject: [PATCH v1 0/2] PCI: dwc: Add support for 64-bit MSI target addresses From: Will McVicker To: Jingoo Han , Gustavo Pimentel , Lorenzo Pieralisi , Rob Herring , "=?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?=" , Bjorn Helgaas , Will McVicker Cc: kernel-team@android.com, Vidya Sagar , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HK_RANDOM_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I have two patches that address a couple of issues I've run into with the PCIe DWC host driver: (1) the host driver fails to probe when ZONE_DMA32 is disabled. (2) the host driver will fail to probe if a 32-bit address is not available even on devices that support 64-bit target addresses. I have addressed both of these issues with the two patches (details can found in each of the patch commit messages). Please take a look and let me know your thoughts. With regards to testing, I have verified them on Android with a Pixel 6 device on the 5.19 + pci-v5.20-changes kernel. My testing included running with both ZONE_DMA32 and swiotlb disabled. Thanks, Will Will McVicker (2): PCI: dwc: drop dependency on ZONE_DMA32 PCI: dwc: add support for 64-bit MSI target address .../pci/controller/dwc/pcie-designware-host.c | 42 ++++++++++++------- drivers/pci/controller/dwc/pcie-designware.c | 9 ++++ drivers/pci/controller/dwc/pcie-designware.h | 6 +++ 3 files changed, 41 insertions(+), 16 deletions(-) -- 2.37.1.559.g78731f0fdb-goog