Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp597572rdg; Tue, 10 Oct 2023 22:47:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHZ0RIl60dct2nSf5qwjo1sGO0FHkaPIYqdtEFL9qGrP601uKPjUzywSBvy+UapNoiXrPyW X-Received: by 2002:a17:90b:4d11:b0:27c:e6a7:51be with SMTP id mw17-20020a17090b4d1100b0027ce6a751bemr4044751pjb.45.1697003224958; Tue, 10 Oct 2023 22:47:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697003224; cv=none; d=google.com; s=arc-20160816; b=KtGzJpaZ1Bg6w7fJMC7n5iRLylA0F1jnBs9oC5nwQGPFJbtaVxNXjQBWmJjZAs9s7d 0mNKh8DgQw3jKpEOF0Rprf3Lp/deOv/7LFVN91G0vcfQ2A3M97EM6/RUfwKaXQSpnAf8 8TKIwitMifj8HjleiWXFo4t1gTc8V4GbynDODErpPE1oN+nw2FO2t9eol05IK79X/Mw8 BDC54Mz/cuM1E16Ckzb16rhVgkUJdbFiyhgOdwN/O9Thw80uuatec6GJwPhbVf5RoUHh 6NkzrGQu8BrRsOmwz+3cVl4RCXf8H45doLWrx0/BAOM1fj3FNp3qd4CzREyzCNDDyB3u upnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=xf/p4DjELpfr1NcB6qfw3yuqnU4IRTf9hEu7aSbTs6Q=; fh=UYX1+c9QkmQ+G7P0q52fEbpiqD5q966rDJ9/s6hwx14=; b=HWz+pd/JpDnsEwqN92iEqLjcOHFj7CCs7zuWySw3ywmJaIrfiOA5opCidlTk/q8P6M SEBknB231YNrzsDwm+n0mJrESghINWumg0D2KYrZmQ2M7ZW9qBVr0whKdo7AwNr1f1fV Fg65sKyUmq8obk2Ef8vcxj3L1tGGEyTSi6ZKE9wH54g4Alo/H0cGdGf10T1O/FYyV+td Z2PUiAKKOVHTjR+w/GFxn/esT+mA++fyeMfNMmrQ+Sy+iriy+4VRyx7hzhuEgmLEc3yy 3uOHUfdTPTHcdM9CEJaCDMKLuz9XUHb1M92ciXFHxDAdXNOVIYZFtx8yN9ROxOFd0dEp jhQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LcwPDc4I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id a13-20020a17090a8c0d00b00278f6d616aasi7232522pjo.71.2023.10.10.22.47.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 22:47:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LcwPDc4I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id BE1DF8099CFF; Tue, 10 Oct 2023 22:46:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229957AbjJKFqM (ORCPT + 99 others); Wed, 11 Oct 2023 01:46:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbjJKFqK (ORCPT ); Wed, 11 Oct 2023 01:46:10 -0400 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE1D19B; Tue, 10 Oct 2023 22:46:02 -0700 (PDT) Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-6969b391791so4562151b3a.3; Tue, 10 Oct 2023 22:46:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697003162; x=1697607962; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=xf/p4DjELpfr1NcB6qfw3yuqnU4IRTf9hEu7aSbTs6Q=; b=LcwPDc4INGTReXION7HXcKqIr9efsf6zWJa8iyKcajeqXuj+9c7S/g9Gm3wu7u/r0k 93ApCbUIW032kYC7lQWFzlKET+mN97fByIL7xEBpLKmKnpTDqnRlsu+bWUNNl4/NlsvQ u0m4GdEjbcbf4Fmq7W+pVosrapYrmgGaXUg+YRoL93ONG5ihfI6YKYqSWnMGBr1OExau scYHQvgnNKR/oVk2J9IvPs/CYq7wmLHjkl+Jas4MyUFQU+roqafHAnOnRx3NAhdWdiEw MWPDePMhDlSpKO/5Yo7UP6fnnn+Izd3qKxcKmICKVAC1VIsOc48S/1JkFcKUgAg68EaT fB4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697003162; x=1697607962; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xf/p4DjELpfr1NcB6qfw3yuqnU4IRTf9hEu7aSbTs6Q=; b=uu/+HiVilCK2tmIoHCVEdqTVqa+iX8kD6Ts4C0mSmJlW79B27YOUPte6uYYzpKk/4m ZeNBDWodidZyVqKpJ0HNt5+OWejhlWUCID7InRtNZmMePBpa4ihudeex19RzMDVBum5N cI+eVIEtV6c5Dl9yBp7AxLlDuMJ7L3OgDTJ3dqMkoo/fTXy7QFHENp7Z501kv1e7Bmsc pJAovt935tmqCjmxKcptgc+uDCEmhfrbHnSaakPoA6iA8n3iO6J1QLbKr3jejjcbSxIO GRBmvpUnJ0aRescYMwWkJpU1M1W6oZrCjseDyJshftMkVqEvWd9Q7BTPQwaJT6iGpPfV N8tg== X-Gm-Message-State: AOJu0Yw8pWWffGmw227sbSq2OU3rtidItVrJXdTnFYYSP9meGjV9ehvc wbaYavtKETwzfT8BjRK66T4= X-Received: by 2002:a05:6a20:244e:b0:16b:e46e:1269 with SMTP id t14-20020a056a20244e00b0016be46e1269mr11501132pzc.30.1697003162278; Tue, 10 Oct 2023 22:46:02 -0700 (PDT) Received: from [192.168.0.106] ([103.131.18.64]) by smtp.gmail.com with ESMTPSA id jh13-20020a170903328d00b001bba7aab822sm12980766plb.5.2023.10.10.22.45.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Oct 2023 22:46:01 -0700 (PDT) Message-ID: Date: Wed, 11 Oct 2023 12:45:55 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v11 1/1] vfio/nvgpu: Add vfio pci variant module for grace hopper To: Alex Williamson Cc: ankita@nvidia.com, jgg@nvidia.com, yishaih@nvidia.com, shameerali.kolothum.thodi@huawei.com, kevin.tian@intel.com, aniketa@nvidia.com, cjia@nvidia.com, kwankhede@nvidia.com, targupta@nvidia.com, vsethi@nvidia.com, acurrid@nvidia.com, apopple@nvidia.com, jhubbard@nvidia.com, danw@nvidia.com, anuaggarwal@nvidia.com, dnigam@nvidia.com, udhoke@nvidia.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231007202254.30385-1-ankita@nvidia.com> <20231009133612.3fdd86a9.alex.williamson@redhat.com> Content-Language: en-US From: Bagas Sanjaya In-Reply-To: <20231009133612.3fdd86a9.alex.williamson@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 10 Oct 2023 22:46:35 -0700 (PDT) X-Spam-Level: ** On 10/10/2023 02:36, Alex Williamson wrote: > On Sun, 8 Oct 2023 07:06:41 +0700 > Bagas Sanjaya wrote: > >> On Sun, Oct 08, 2023 at 01:52:54AM +0530, ankita@nvidia.com wrote: >>> PCI BAR are aligned to the power-of-2, but the actual memory on the >>> device may not. A read or write access to the physical address from the >>> last device PFN up to the next power-of-2 aligned physical address >>> results in reading ~0 and dropped writes. >>> >> >> Reading garbage or padding in that case? >> >> Confused... > > The coherent memory size is rounded to a power-of-2 to be compliant with > PCI BAR semantics, but reading beyond the implemented size fills the > return buffer with -1 data, as is common on many platforms when reading > from an unimplemented section of the address space. Thanks, > > Alex > Thanks for the explanation! -- An old man doll... just what I always wanted! - Clara