Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26077701rwd; Mon, 3 Jul 2023 05:16:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlEHOcKd2kxD9dJ+4onwuw9AIU+P+TJsPkOZU4LR1qyqhj9XaWBv4/OFmXDx0aJngtQClU4Q X-Received: by 2002:a05:6a20:42a4:b0:12e:68af:de8f with SMTP id o36-20020a056a2042a400b0012e68afde8fmr5458163pzj.35.1688386607647; Mon, 03 Jul 2023 05:16:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688386607; cv=none; d=google.com; s=arc-20160816; b=aJOXGK6hgO/QfXVOloZFnAgYY8l/G0AwCp96gslFy0z/u08SW8Sckanw44Bbs5gqko gM06qjR2VljU+HYZuTetEgB8cft09hQBnYXDyX9uYhzgQherDyAKOlBoOi5XdlVYQuFg tVTZFJPYw0zsWZZYbsQI4rjRi145ucey8n1i8Wj87taYbn3CUI8AuXD94MTGt1jJcBxi WH28FsXyZ2/K3NtQdUd0gd9PUzYbGJlqLMUgq9EW4XCeCNKVLbCWXXrAA953MWFzgq9t 7W9gJxd+qn55ie7WoXMI4kcjCg3e4RU67a1fVVQF9LsWgUaB+MnbPJiudmqVtnx3qZZj ErQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=J1RQZiBYkGXoDrkdvY5PoVYRfWP/etmDOBicF5bYDcc=; fh=8oew1wynZT72e+j8a30ouXAZvMAoLTSH1UhJ7y8Br/E=; b=ke7UxAaJeJHNbl8S8F1TLDv+rQKWU/Vu65zRYijmTRkEzCWf0++Bx05il/CjOUNj62 Pas7rxXAmsoWj+eMuuMiOwnOZn99RYwkb0YB9+p+FFrjKtRpH5b71lNSRU4Ptw9eUtiW ZuihvNsfwgeTf0ewVw3bzY6uaX243793oEog9+AP0MFkPM8+Z9/SnfG6tZ08iz7dzDi3 BzQ8YEy2l+Q67o7g7PC7XmHYjTRsFwiUwLrKqBEuLI7hZg6RhMANJMiXISq6tzELH/FF qiAZ1aMetlX/Oqo7msk3EHJhddiEFc4iLUK9xaOEvsQK9CnQ+HMuVjQgjnWvK2NFQcZq 8pZg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r7-20020aa79887000000b0068259969675si7370667pfl.297.2023.07.03.05.16.34; Mon, 03 Jul 2023 05:16:47 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230176AbjGCMIa (ORCPT + 99 others); Mon, 3 Jul 2023 08:08:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229585AbjGCMI3 (ORCPT ); Mon, 3 Jul 2023 08:08:29 -0400 Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E302115; Mon, 3 Jul 2023 05:08:28 -0700 (PDT) Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1b88e84bfb8so11663635ad.2; Mon, 03 Jul 2023 05:08:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688386108; x=1690978108; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=J1RQZiBYkGXoDrkdvY5PoVYRfWP/etmDOBicF5bYDcc=; b=MhIYQc5gOS6fVi8ic32NhUXVhX8rsDFE0L5lk5r8pkkbDLSxSNbFY7NzeMR14Hypkl UpibvqmeL5D2OrVd6IZsNvGhW7IBJTk6vthtq2MBlUuMBL0E9niUpyyG1IGHyO78ntL/ LOatxoqUCpL1j/e0dFAC96vVo1VzfJvhLhGVVBmUjN3wklk3YYELmVdS+ofni14Kyt+C qMoyt/1ZpjMoy93twAWGC2p6/eeJ35/5fpl0qCRzHAzhjHyculVOZ27f72RMfA0Lzyzx MLfKmOCWu6Rb7VqAHVnNEMKRL7KSPB4nXDuH1uhapYx18eUSV5/I87bI5PsLGZXajw/8 JH7Q== X-Gm-Message-State: ABy/qLZ4fxcl3MatMSIHJq8frUmDVaWG/aWL2vhdFffrRavGNs8Iix0z CrJj0ypM+Uf1ZoWUE+pESuI= X-Received: by 2002:a17:902:d486:b0:1b2:fa8:d9c9 with SMTP id c6-20020a170902d48600b001b20fa8d9c9mr12966827plg.49.1688386107834; Mon, 03 Jul 2023 05:08:27 -0700 (PDT) Received: from localhost (fpd11144dd.ap.nuro.jp. [209.17.68.221]) by smtp.gmail.com with ESMTPSA id s12-20020a170902988c00b00198d7b52eefsm15161441plp.257.2023.07.03.05.08.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 05:08:27 -0700 (PDT) Date: Mon, 3 Jul 2023 21:08:25 +0900 From: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= To: Robin Murphy Cc: Rick Wertenbroek , alberto.dassatti@heig-vd.ch, dlemoal@kernel.org, Dan Carpenter , stable@vger.kernel.org, Shawn Lin , Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas , Heiko Stuebner , linux-pci@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] PCI: rockchip: Use 64-bit mask on MSI 64-bit PCI address Message-ID: <20230703120825.GA2375438@rocinante> References: <20230703085845.2052008-1-rick.wertenbroek@gmail.com> <997819c6-0798-e2f9-b94b-fedfbab7fdd8@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <997819c6-0798-e2f9-b94b-fedfbab7fdd8@arm.com> X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hello, > > A 32-bit mask was used on the 64-bit PCI address used for mapping MSIs. > > This would result in the upper 32 bits being unintentionally zeroed and > > MSIs getting mapped to incorrect PCI addresses if the address had any > > of the upper bits set. > > > > Replace 32-bit mask by appropriate 64-bit mask. [...] > > +#define PCIE_ADDR_MASK GENMASK(63, MIN_AXI_ADDR_BITS_PASSED) > > Nit: this probably wants to be GENMASK_ULL(), otherwise it might throw a > warning if compile-tested for 32-bit. I can change this to GENMASK_ULL() when I apply the patch. Unless Rick wants to send v3 - either way would be fine. :) Krzysztof