Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp526379pxb; Mon, 7 Feb 2022 17:49:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJxhA7t1eGLSdb4k019rsBgoPZoErOfqKzBLjlB/qxLOsT/L63LZ9P1yVf19ThKz/QTTuzCG X-Received: by 2002:a05:6402:448f:: with SMTP id er15mr2272128edb.222.1644284998785; Mon, 07 Feb 2022 17:49:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644284998; cv=none; d=google.com; s=arc-20160816; b=VU+ovPqSCBspXuKWF5Iv8AovbwIo4RE0R861xrORNSNvK2ybynQaY9kJdIHPeQ89Bu ZGHyyWirtSg6NA1awilfwbluzDP4YJ500WPGazUhDcTv8fQMv/Qe8XL8Q6/paGq1OanP SHHKu4ULiiSuJshpwo9Jd/ZQiS+JHF9m+iKKQZl0o8Zd7Y/fLK4LYls3JNJMEMF1+Gaz +kcuo6FI1W009Or5uEUz+2U2kXq/A+wPMfEV52hYHMQYgyYCJnHwlpOiO2FI4EUXADEy hVXW7oRFG37rZXMvqJe/mzfB0yMc/0lkaimxDVF9kO4PM+vO4vi7y3+z87f6xLaU+YC0 z/6Q== 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=VANB5eLHbFe+mcOUZTXCO8085NJWiAnZpaxFhcfyGQg=; b=gskLg4CIus9o4fhfLwTp1sdXeKkqT17W4VtkkyRYGZT7oS114PR5gWlFAk/mO2kav1 F0aaaRjVAj81WxO6Ge8ggCkpiRUDl295AjxZQIz7Utb6y6TQ6AFcCJ5WEcbkGg2iY3+k gGrsm4ZSkOAvxyOOVjxI89Riru9C0gIhDXvAmhvmi2bp9DjJX6/vD9V8+KMpCpmQln4j SOymZ6NjFR7htM8ZnjhbkKcAujbKEsxA7/GN1IhQH9kAvoaD+ijXBsLGElhUsXm+8Uag uWiAhAiMyNQjlLs97INCXDskGbTUOf/gbsglXq5i/AJro8b/KFrJEFOzZLOWhNkAwTuw A5vA== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b9si9837702ede.136.2022.02.07.17.49.34; Mon, 07 Feb 2022 17:49:58 -0800 (PST) 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350041AbiBGSBh (ORCPT + 99 others); Mon, 7 Feb 2022 13:01:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345044AbiBGR4O (ORCPT ); Mon, 7 Feb 2022 12:56:14 -0500 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB511C0401DA; Mon, 7 Feb 2022 09:56:13 -0800 (PST) Received: by mail-wr1-f46.google.com with SMTP id m14so26209141wrg.12; Mon, 07 Feb 2022 09:56:13 -0800 (PST) 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; bh=VANB5eLHbFe+mcOUZTXCO8085NJWiAnZpaxFhcfyGQg=; b=iZSIQqsGC/FlZTPHRADkgy0FyTzuCdgIIcdg1/Xp0ZDItHxrhsSgi6/6e1jt2rYNPm j99sgXP2hNlUMVKlfQ8Dqs63YUWAqnYU1O7voAw/rrTp91XHZzMxqB4wRPU8zXAZOVkT PP390YgWJPn4X+sWKCmz5N113JJo1SmdnhwHuutEZlR9ZTBTLd03HiqMnsA7RLKzQMqi 3neypZUFhrkki4el/M55RstfVkvegPZotuRYIcEq6cBVdmMHIuAxXLw7AR2x2KGjJbh/ lXM4C+s40FGRHjyKrqS+i573sS+krU98lbJUsKTdKKKxRBEDiULu3lrhsmWy1FwWNU7/ OALg== X-Gm-Message-State: AOAM533M1fC3TlMT/0njfsbil4fH0yohdMsI2QOWBWWaHLtyx4GsKf25 4GhmWPTmZGhmXK36RGWNhW4= X-Received: by 2002:a5d:4b11:: with SMTP id v17mr452829wrq.461.1644256572330; Mon, 07 Feb 2022 09:56:12 -0800 (PST) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id t17sm10633453wrs.10.2022.02.07.09.56.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 09:56:12 -0800 (PST) Date: Mon, 7 Feb 2022 17:56:10 +0000 From: Wei Liu To: "Michael Kelley (LINUX)" Cc: Nathan Chancellor , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , "wei.liu@kernel.org" , Tianyu Lan , Long Li , "ndesaulniers@google.com" , "vt@altlinux.org" , "kuba@kernel.org" , "linux-kernel@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "llvm@lists.linux.dev" Subject: Re: [PATCH 1/1] Drivers: hv: vmbus: Rework use of DMA_BIT_MASK(64) Message-ID: <20220207175610.rrhgfuyvsfp7evcp@liuwe-devbox-debian-v2> References: <1644176216-12531-1-git-send-email-mikelley@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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_H2,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 On Mon, Feb 07, 2022 at 02:42:31AM +0000, Michael Kelley (LINUX) wrote: > From: Nathan Chancellor Sent: Sunday, February 6, 2022 5:38 PM > > > > Hi Michael, > > > > On Sun, Feb 06, 2022 at 11:36:56AM -0800, Michael Kelley wrote: > > > Using DMA_BIT_MASK(64) as an initializer for a global variable > > > causes problems with Clang 12.0.1. The compiler doesn't understand > > > that value 64 is excluded from the shift at compile time, resulting > > > in a build error. > > > > > > While this is a compiler problem, avoid the issue by setting up > > > the dma_mask memory as part of struct hv_device, and initialize > > > it using dma_set_mask(). > > > > > > Reported-by: Nathan Chancellor > > > Reported-by: Vitaly Chikunov > > > Reported-by: Jakub Kicinski > > > Fixes: 743b237c3a7b ("scsi: storvsc: Add Isolation VM support for storvsc driver") > > > Signed-off-by: Michael Kelley > > > > Thanks a lot for working around this. I am hoping that this will be > > fixed in clang soon, as it is high priority on our list of issues to > > fix. Once it has been fixed, we should be able to undo this workaround > > in one way or another. > > FWIW, the new code is as good a solution as the old code. The new code > also follows some existing patterns, such as with struct platform_device. > As such, I don't think of this as a workaround that needs to be undone > in the future. > Yes indeed. Patch applied to hyperv-fixes. Thanks.