Received: by 2002:ab2:6991:0:b0:1f2:fff1:ace7 with SMTP id v17csp234098lqo; Wed, 27 Mar 2024 11:25:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXd5TpWMSTZ3pjEynYAYGiFja8rr13NS1Kh/7ZvWWF2qp1MFyYtA1xqqq43+TXMkJyJYmkzBSe2lQ1O+Lm1RQ0zZB7GFg2HgM8zoaXcZQ== X-Google-Smtp-Source: AGHT+IF+jrjM3r12DpJntXAHt2ELtDQwVrJ987Zos3/3vkZGBvSUCI3YxLwRMEHHoWkiTDUyRevR X-Received: by 2002:a05:6a20:ac44:b0:1a3:6fe5:7c82 with SMTP id dh4-20020a056a20ac4400b001a36fe57c82mr835148pzb.27.1711563904683; Wed, 27 Mar 2024 11:25:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711563904; cv=pass; d=google.com; s=arc-20160816; b=yNxlxhGlDv9gj1wEWXEWNImlcIG8cdix9FB3jPz+8CO4WtlaMoYq2Pqilh3GDMIipW VvqnAFXlX31qpVJiGvTOwEBgZMzbDrITgYF0U/UwEyEcDxupBUoSSAPwn0nCHeu4noCz MIC5+u0YmLGnfdHw92F8J1YrtvfOg4KNShc5IF8swxXm1kAtipeDwxhp5x8Gh/ocV9M4 RGzvts7Acc4tNCiDV/Uzvs2na5asShE685Is5ezKIgrlnQadoA6g4G4B5uZuUhjqicAi pxEuxX9Rx1P0zQeOoKBnw1+/WQ/MkM8KoVcpIfBKvBadPA0E+2dfo2sa7WkCexOzpKNY LmqA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=JMEDK3ntJ5+s4KE2Ja+bkgp0N/KEOQkU85FV4aOph5Q=; fh=2vJhkF+FmV+tOADMPNMEGCKKqA2bMrUsUjRuMHxWpdk=; b=0Dfa7LNCgUKR9EXLKD9eF+vDQLnX+C8XBdBRUx5dTlUnyTjqypUOYbHrGGgfp6UgyG PkGUPAg6isAK/GQDDRO1ddMv6Icq8HXMZAMMJNvc75rAS1PSt6sX9UYgvGEUkuyrN26y x/oUI7mb2abCW0yVGcgHWexNulmjAU9/SQYq1wb5LN0xl9pXGToai3WwJTJGjYPcEaMV df+C/4ReeuRm0Fa2mKeKajXGCnns3rttCIC9i75RRfIhowF+c3jpc9+cIkGJJQzFsbG1 EUhfrHEEGSHjFOp+0x9DKflOXusijAmTQza3PAjsbu9aMW99zNz1fcwwXnn9UsvF0l5z u3lA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VQAUYVkk; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-121765-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121765-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id a17-20020a631a51000000b005cdd9963f49si12237322pgm.863.2024.03.27.11.25.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 11:25:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-121765-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VQAUYVkk; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-121765-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121765-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A541CB2A7EF for ; Wed, 27 Mar 2024 17:58:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 22D0214F9CA; Wed, 27 Mar 2024 17:51:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="VQAUYVkk" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 0EAFB14EC52 for ; Wed, 27 Mar 2024 17:51:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711561902; cv=none; b=H0FX4Xhkxnz5tgG/6yfiwAWLFUb7mSVcDdVBGtko4Fs94Vv5Q9u41BkI3nXO75RtFJAjdIrfIS94YifAkkzwz/ngiO8nDF536jT0GVBsiZ5cxoLx4rwt0LtPFuJDWyNMRmtkerqShbfp7k3b/qx6MmT3gKXl25cXb+rP/m9QAzY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711561902; c=relaxed/simple; bh=Ifq8bc4sS7mIA42uoZVgKLdhrUE9yKJJvvvC0SusJHY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HqiKFiFO+m4yWhbpM3BJyBSVL8iLmsswBDZwbeth2xGEjonAofoiHmL8F2kGxSV7tM5Sp43gI5V9Q0tJT4gT/5a/eNBZ0FFAyQxPFxmuP/C9As6VxpfcmEpjxy2QX1GzpsWFPvGKj1ySu+aX9eMpHEwNBXKxBv3QivYLnMNovmM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VQAUYVkk; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18642C433C7; Wed, 27 Mar 2024 17:51:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1711561901; bh=Ifq8bc4sS7mIA42uoZVgKLdhrUE9yKJJvvvC0SusJHY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VQAUYVkkowBA1kzf4iR4zJrIX2VW9K2SbPhSgbsK8NrT/Psjovj0G5NHt+4sLWpH+ GXzVSBzGod2oR3ziGZbYGRbZDiTZzf+/QDTTA/LUp8zP+gfXvI33VvXUVcMLmjE/fm h0s8pdNHa6MVg3DoQanRAKnrJMrUkJ4q0/feZF6I= Date: Wed, 27 Mar 2024 18:51:38 +0100 From: Greg KH To: Linus Torvalds Cc: Chris Leech , Nilesh Javali , Christoph Hellwig , linux-kernel@vger.kernel.org Subject: Re: [GIT PULL] Char/Misc driver changes for 6.9-rc1 Message-ID: <2024032709-grunt-eskimo-55a2@gregkh> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Mar 27, 2024 at 09:56:43AM -0700, Linus Torvalds wrote: > On Thu, 21 Mar 2024 at 06:02, Greg KH wrote: > > > > 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! greg k-h