Received: by 2002:ab2:6991:0:b0:1f2:fff1:ace7 with SMTP id v17csp178473lqo; Wed, 27 Mar 2024 09:57:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWLrutBPO7mehI9Ixx/xA0n/ORujYMK56NOBC5+FpROno1wosb6iOCH3UJVNdG7RVPII64I/TPEsxzwfeUfPiiktQC592dTXZ8ocJnNiw== X-Google-Smtp-Source: AGHT+IGJci704UAk1a/a6tloROfphSLzdAtB47YrMrF4B+ye0R7N80hPEaYaYlw29AmlDtJHgeLf X-Received: by 2002:a25:86c8:0:b0:dd0:471:712 with SMTP id y8-20020a2586c8000000b00dd004710712mr377134ybm.33.1711558631299; Wed, 27 Mar 2024 09:57:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711558631; cv=pass; d=google.com; s=arc-20160816; b=QX4y422tCOw/H5whWU0YLbjmpuou7lpYirMzIzc1431c/X6YasXohSil0PCxcBDZXQ YUCmoqkwfgR/OmvJhuf/gznswOfa+hKpQSs9OhauGzZFU0WVCbvvQhF5Gd0e0e5JlBH1 skzDNBjiyGKYUhscZygwYdqnnu2Qg1QK+hV6dm8mb68DF4gC/iVew4OjJxdWjPsQIKWv ThUdZYv4Nvi+T//BMSAiRne4YlVJSsks6LXppKdiXnlFVsa9020+uJrzPVMZOxMRB+q1 1sdsDKXlfsAyOG3zZbE3ww5P4bSc9/oLaR4nlNdXFTsjdlMD6ZMxizfvVXjn2YX83qye sDyA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=a4rZuSF+pi31EXHxuJfITjpENhO2rcyue7XuCH9Tj1c=; fh=2cCNIxYSUMLj3XdULgV5TmBoLGFN1EQtm0RzRzXn2sA=; b=AirpEe/Yeh8ngQqQn9Efe26XRZQRAxKvfFR2EfdohrbnZEdn89PMXdczS57WSheMcE 4s3kyeiQVgDWG57/0VR74jdWYy+LZRYaeRzReeuPa/i5AmdREBOSCfm6XQiMcX7393Mg 4qo+OquWKBsWr2YjB86cmPzR8aDM2Nzb/oVfg5rR0M29mpTF/RzB0dc0w1pz+bg4S2Fk MxHUg4JUPSxk6cHJrxxnYU491V1LR+YJVLci492di6oas79kRVCX3YhIDbUu51zKfAbD Ps0fSJx9FOu6L2iVwkPzq0pYBSKIBxgCACmFLB4P6nazXwvNTPPFp+x5XevIIYxPG75t kx9w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=d0vjn7kN; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-121658-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121658-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m12-20020a0562141bcc00b006968ed4fa83si6840063qvc.110.2024.03.27.09.57.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 09:57:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-121658-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=d0vjn7kN; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-121658-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121658-linux.lists.archive=gmail.com@vger.kernel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 058951C29F24 for ; Wed, 27 Mar 2024 16:57:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 43357149C70; Wed, 27 Mar 2024 16:57:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="d0vjn7kN" Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0189614D29E for ; Wed, 27 Mar 2024 16:57:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711558625; cv=none; b=n3hmmqZPBn9Xpm4Cm18OBsXyMIHJEEHqZbp9vqDU7MHJHAt47OtO9o7G9EFSfUI5rjx+ZBfgw4ZFdF35nl80IqUvn9ZgL/ggnl8raK74XahIs3MY21mcbpbiwzFOE9xZD6q9shgtAvdpMDrEZlxleqdX4sD57hHXZS/NHc2pa2I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711558625; c=relaxed/simple; bh=tmLpSzyxJf1bump+PTd5PHsMrvseHbupr6ZAVdaKn2U=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=K+7OeqpK/yEpLEcqrPTag2BDpxCt5dYWkwkrfbTa9MLiHalp+i7uXE+tZFdN9Krk9b+kzYRf2/YrZYKuBwd2dOYLjiZG67byi/qUYNszpQeY2QKxAk71ixa77xluIAbfXzwrwUPEg5t0W/kgkSZv03e1z+3XRSFTWKhFLpwYxyI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=d0vjn7kN; arc=none smtp.client-ip=209.85.218.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a46d0a8399aso191573966b.1 for ; Wed, 27 Mar 2024 09:57:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1711558621; x=1712163421; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=a4rZuSF+pi31EXHxuJfITjpENhO2rcyue7XuCH9Tj1c=; b=d0vjn7kN+CM3THj/wegX8qJ/M925ME1KJI9p1eTJyleZ8cWflivYrjSd4e3WnAjRw9 5ziwjSbmmwVVQ2IPVJ8hYRnzJ5YRn/wB7hS2H1Yk10ELsGCGgTEISXF5C4iB+spntdYI h2WMEwKU/rsVBfMiSdjmq581Az+YM0iUxnCxg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711558621; x=1712163421; h=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=a4rZuSF+pi31EXHxuJfITjpENhO2rcyue7XuCH9Tj1c=; b=C0YQfEFuzBmkzQ8PDxumZajkIfOqOdl92Spg/+85DxsEDPWTbqwD0W5TjS93tJeAPg mMpavwN7xS1vXRFP7oHt+rV6hi1uh55X9ICQIGDJu9seE96ZxpuN+0EUYGYeGttaxKXc paVLV3mSMCUBvUp207pHb26AuSKd67ppq2o2095eo6PqMPT9266bqZnbMpQoumvHNgyg t3fzr0DJ2mF+GGh4+sGIxWQhgyjzi06DfljR0RPEHYMrD2ufGqbz1haFmvVJ608wZe9t rUShyYxmXFzfsUxTJGFA0xxHyKKS5NmYFG+f733mUibu6wNhq+dB9jIX2UF4ZxIgRKaN PApQ== X-Gm-Message-State: AOJu0YxnCsHhsRDrd8+8K/bfkNC1SqEULZ8L2o0MnTx134y3o+lMG5uQ Yr5t/oI37Pp0czCfDb36uxrQ60eYhtqZcj+u6hmsN5Bd8znPw5vHOnKjIaCW4WX0ivfXKHwBR4I 4fu4= X-Received: by 2002:a17:906:f754:b0:a4e:fab:ec5f with SMTP id jp20-20020a170906f75400b00a4e0fabec5fmr135104ejb.23.1711558621004; Wed, 27 Mar 2024 09:57:01 -0700 (PDT) Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com. [209.85.208.51]) by smtp.gmail.com with ESMTPSA id b17-20020a170906709100b00a46a9c38b16sm5601421ejk.138.2024.03.27.09.57.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Mar 2024 09:57:00 -0700 (PDT) Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-56c36f8f932so2049899a12.0 for ; Wed, 27 Mar 2024 09:57:00 -0700 (PDT) X-Received: by 2002:a17:906:f18b:b0:a47:3cd5:b3f1 with SMTP id gs11-20020a170906f18b00b00a473cd5b3f1mr106976ejb.35.1711558620065; Wed, 27 Mar 2024 09:57:00 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Linus Torvalds Date: Wed, 27 Mar 2024 09:56:43 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] Char/Misc driver changes for 6.9-rc1 To: Greg KH , Chris Leech , Nilesh Javali , Christoph Hellwig Cc: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" 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") Linus