Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1671216lqz; Mon, 1 Apr 2024 13:25:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUumKMyrIaBAM1AnKhTJqAzLx94cuGzhkbWm3KZjPyEr784eJguJ2eusriY6XWRLA2RQIPMtVB2LcQudvDf8s6/0+NtXldtOJd2NmJFEA== X-Google-Smtp-Source: AGHT+IGaQgXWWZXbett1SwXwXF4RlKhIUkl41Vy8BvUjgYyGwtefHKAfc/nPvb1QBjvIisisyTeV X-Received: by 2002:a17:90a:5901:b0:2a0:4bb8:d867 with SMTP id k1-20020a17090a590100b002a04bb8d867mr10332033pji.22.1712003112929; Mon, 01 Apr 2024 13:25:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712003112; cv=pass; d=google.com; s=arc-20160816; b=Co0a8hEss9Q6LTqGiALH5F57zeJ1/afv2lXZHKIssr5sBKB3h5tZ56JDyulO8xXcIj +GxwqvPCZfeS3THNFrnEFveUFZNAaSpbDF+a5AoPrGPfVgHwyobzDfbp+//+NchFbXBs Q3dN659gGIv8CxV1bqPaMbag6XTcFvN1vp3MyA9UF90Z2wqI83ZUVmOf+z6yOMPlRH/A GW3fZHoJEtnfz6B4ORt37oMrxWgOg+nECdOovDwUq1Tkl2mJjEqo49YqwkoNOpierD49 08iN+w4PziVqh1Ic8Q57HUsWGJrtN6G716pZGRzRSqB3nm/n3/i4vih0nKiLi/JUQ1FX RIaw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=7aR8tu4wboUlsoHy6XspKQ2R0ZstTV8oFxNJ4vNDsKA=; fh=JGot31du9ub2Ty5zeUG6J6PT1MhhGRNaPkz18+2gNmE=; b=xJ2repndDbUOb7PR2uoF+4V0Ey8nQmRTtHyFIgB6ehNVYdwr0m1X/WWSftNtGDX/1h 0qUkZ4M6ZZH2kwQhTqdykyfFCCs73y+84mDKW0H4VGNdEs2pVFzyuMWt1cVsXNOcG9qg SVn0FUJM6aqMX1UEzvKMMJAYoX7iw3ixcCB4nuhH7lNqbF3V6VPbUX9AmJgnXlaijOcm kfSPX08z++yE8TvAR6tsmztKOGHRwEgoAHwkyqRAuHJzLaXtzM2Z5GAbDo8OMBqN7/Ls RPa3vAHUyDpXXNeBTgiY/D2PbeulYwuVB/v5VTu7hRssm+SOF+XpzIRtrBuxyVQ3IIWE i50A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QvEmbmnW; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-127024-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127024-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f11-20020a17090ac28b00b002a04a27086esi12236534pjt.166.2024.04.01.13.25.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 13:25:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127024-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QvEmbmnW; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-127024-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127024-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 97F76282D0F for ; Mon, 1 Apr 2024 20:25:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 497C953E12; Mon, 1 Apr 2024 20:25:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="QvEmbmnW" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9053E2E410 for ; Mon, 1 Apr 2024 20:25:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712003106; cv=none; b=GYekaxP4WzW2rp53ck3zswwYj3TpNUN4/T4fkyjXMG4uUFhGrfBsqeUwo3xbEeElvGsaHVYxHhWjKQToaMp7r5rfJORbu25dEi6F9D5Mr1I4PJvbyhsLN2DDZ55N/yeCpHe7IlXq/l4esNrBXgZ7GlLmxTDQyjwqldWqQih21W4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712003106; c=relaxed/simple; bh=vZUfNjaqaDySW1XWidGq+0ExudpJPYSAIJstHMBKzg8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=jlBmQWuj4KJiy+0swBn3LoD1Dm8ewz8WftpKXXwGbh4sqWVBg4JyxEH1Cj89jrA6I2eUwvEGzphaErMvIozU3ykk5bk/E7lLdO8Lg80WrKmDXGGkqscQIzqQOUMndB4aF3vTqhwooe+9ogdsP27MUuRR36nnKMYHJz9+k5n22IE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=QvEmbmnW; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1712003103; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7aR8tu4wboUlsoHy6XspKQ2R0ZstTV8oFxNJ4vNDsKA=; b=QvEmbmnWvFiuSvNN3YJ/2f3Zlq7d8rzRvG6T8q+2Fzza/E4lcwUvOy/lmap/R3CngEw6NO 8A4/gIybl0AfeeOwn8tDDSdmuKrk8z2LNkjrfPtwDv6pqA4ks0AWQd2Y8wb51GHlR0ODrW /pmF8x4yW2OGe+ASGJHGplSXKSANJ9I= Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-331-UblUx4WdNu2aYo28lfo-6Q-1; Mon, 01 Apr 2024 16:25:01 -0400 X-MC-Unique: UblUx4WdNu2aYo28lfo-6Q-1 Received: by mail-lj1-f198.google.com with SMTP id 38308e7fff4ca-2d70ae79294so18102981fa.1 for ; Mon, 01 Apr 2024 13:25:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712003100; x=1712607900; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7aR8tu4wboUlsoHy6XspKQ2R0ZstTV8oFxNJ4vNDsKA=; b=JgRgTMJmV3U0WnOqwdpMtXZod7t8N1q5iJaVFPUX+DK4NtmojRPgG6rgnyDKFw5N9W tiX5SsMxdf5qtTVUp6weMxADWAIOTz2eHvW1nl+MVoZIzEb+SYLyUgSMeGYs3SocjVQ3 Zhdkqn98hMLbgRL9eWM9DCwbx7sPydPSKXQQxyQBPgZ/wsub1PyOYT+KJ59xoFW2ZqMi nfpIt2FEGED/l0lhzDoyWxxH9pGzpmC98yO0VL2eMXPGiv2zkbfl7VEm47R0BT5H9rsz PsZ894pvbQTSy0P/rVKkw4NbAPlZnjHCM8AMqL59O/WL7r2v4MtPt79BM19syK2+a6fj OwWQ== X-Forwarded-Encrypted: i=1; AJvYcCWNDWmoW0Dq/v39PcPmgtTQp3rZzCTs3LjPTn2fkZ3GfXXIzLZCF8afLaxoIzkt+TOBRpjotLcoPWLTXiTjJZzv+DFwJ94qAnnOQQ4A X-Gm-Message-State: AOJu0YxuB2GditJPCG6yz0UeNT2EI7rV/IWjQtIv++5HvbAIR3j+YKuT F4wciFIuI3FhKkn0RET2sF3R587U0Tv45ePzDVU370GwfAJLqyY2enkb1ztes+2bypUlEKWjhNw rO7dfxNBsUYr29s5c6qcZkYZntA/PTr7aS3tg+5nIlREiB1wm5jY9Y6MrZ2gBIXnv0Sv+Jac8Y0 VgcFkqvHJ3BMdWk0h9rMG3NjDiXP5MkYzhQF4V X-Received: by 2002:a2e:b710:0:b0:2d5:9f6f:1df2 with SMTP id j16-20020a2eb710000000b002d59f6f1df2mr4746446ljo.0.1712003100456; Mon, 01 Apr 2024 13:25:00 -0700 (PDT) X-Received: by 2002:a2e:b710:0:b0:2d5:9f6f:1df2 with SMTP id j16-20020a2eb710000000b002d59f6f1df2mr4746444ljo.0.1712003100065; Mon, 01 Apr 2024 13:25:00 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <2024032709-grunt-eskimo-55a2@gregkh> In-Reply-To: <2024032709-grunt-eskimo-55a2@gregkh> From: Chris Leech Date: Mon, 1 Apr 2024 13:24:49 -0700 Message-ID: Subject: Re: [GIT PULL] Char/Misc driver changes for 6.9-rc1 To: Greg KH Cc: Linus Torvalds , Nilesh Javali , Christoph Hellwig , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Mar 27, 2024 at 10:51=E2=80=AFAM Greg KH wrote: > > On Wed, Mar 27, 2024 at 09:56:43AM -0700, Linus Torvalds wrote: > > On Thu, 21 Mar 2024 at 06:02, Greg KH wrot= e: > > > > > > Char/Misc and other driver subsystem updates for 6.9-rc1 > > [...] > > > Chris Leech (4): > > > uio: introduce UIO_MEM_DMA_COHERENT type > > > cnic,bnx2,bnx2x: use UIO_MEM_DMA_COHERENT > > > uio_pruss: UIO_MEM_DMA_COHERENT conversion > > > uio_dmem_genirq: UIO_MEM_DMA_COHERENT conversion > > > > So this was all broken, and doesn't even build on 32-bit architectures > > with 64-bit physical addresses as reported by at least Guenter. > > Notably that includes i386 allmodconfig. > > > > I fixed up the build, but I did it the mindless way. I noted in the > > commit message that I think the correct fix is likely to make > > 'uio_mem.mem' be a union of 'physaddr_t' and 'void *' and just always > > use the right member. UIO_MEM_LOGICAL and UIO_MEM_VIRTUAL should > > probably use the pointer thing too. > > > > I also *suspect* that using 'physaddr_t' is in itself pointless, > > because I *think* the physical addresses are always page-aligned > > anyway, and it would be better if the uio_mem thing just contained the > > pfn instead. Which could just be 'unsigned long pfn'. > > > > So there are proper cleanups that could be done in that area. > > > > That's not what I did, though. I just fixed up the bad casts. > > > > There may be other fixes pending out there, but I didn't want to delay > > the 32-bit build fixes any more. > > > > It turns out that the cnic,bnx2,bnx2x conversion avoided the problems, > > almost by accident. That driver had used UIO_MEM_LOGICAL before and > > had existing casts. That doesn't make it good, but at least it made it > > not fail to build. > > > > See commit 498e47cd1d1f ("Fix build errors due to new > > UIO_MEM_DMA_COHERENT mess") > > Ick, ok, those casts work :) > > I was waiting to hear back from Chris before applying the patches from > Guenter, but yours work for me for now, thanks! My apologies, I was away for a bit and missed the emails from Guenter and Greg in my backlog. Sorry about the mess. - Chris