linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Chris Leech <cleech@redhat.com>,
	Nilesh Javali <njavali@marvell.com>,
	Christoph Hellwig <hch@lst.de>,
	linux-kernel@vger.kernel.org
Subject: Re: [GIT PULL] Char/Misc driver changes for 6.9-rc1
Date: Wed, 27 Mar 2024 18:51:38 +0100	[thread overview]
Message-ID: <2024032709-grunt-eskimo-55a2@gregkh> (raw)
In-Reply-To: <CAHk-=wjHZBziH+5tXcTJ1aGZN2tC5S5gKhkNjhiaFFO93vNqcA@mail.gmail.com>

On Wed, Mar 27, 2024 at 09:56:43AM -0700, Linus Torvalds wrote:
> On Thu, 21 Mar 2024 at 06:02, Greg KH <gregkh@linuxfoundation.org> 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

  reply	other threads:[~2024-03-27 17:51 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-21 13:02 [GIT PULL] Char/Misc driver changes for 6.9-rc1 Greg KH
2024-03-21 13:48 ` Nathan Chancellor
2024-03-21 15:04   ` Greg KH
2024-03-21 15:13     ` [PATCH] speakup: Fix warning for label at end of compound statement Greg KH
2024-03-21 18:10   ` [GIT PULL] Char/Misc driver changes for 6.9-rc1 Linus Torvalds
2024-03-21 18:12     ` Linus Torvalds
2024-03-21 18:30     ` Nathan Chancellor
2024-03-21 20:28       ` Linus Torvalds
2024-03-21 21:10 ` pr-tracker-bot
2024-03-27 16:56 ` Linus Torvalds
2024-03-27 17:51   ` Greg KH [this message]
2024-04-01 20:24     ` Chris Leech
2024-03-27 20:26   ` Linus Torvalds

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2024032709-grunt-eskimo-55a2@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=cleech@redhat.com \
    --cc=hch@lst.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=njavali@marvell.com \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).