Re: New DRM driver model - gets rid of DRM() macros!

From: Christoph Hellwig (hch_at_infradead.org)
Date: 09/29/04

  • Next message: Alan Cox: "Re: Core scsi layer crashes in 2.6.8.1"
    Date:	Wed, 29 Sep 2004 15:16:01 +0100
    To: Keith Whitwell <keith@tungstengraphics.com>
    
    

    On Wed, Sep 29, 2004 at 03:12:03PM +0100, Keith Whitwell wrote:
    > Thinking about it, it may not have been a problem of crashing, but rather that
    > the behaviour visible from a program attempting to read (or poll) was
    > different with noop versions of these functions to NULL versions, and that was
    > causing problems. This is 18 months ago, so yes, I'm being vague.
    >
    > The X server does look at this file descriptor, which is where the problem
    > would have arisen, but only the gamma & maybe ffb drivers do anything with it.

    Indeed, for read you're returning 0 now instead of the -EINVAL from common
    code when no ->read is present. I'd say the current drm behaviour is a bug,
    but if X drivers rely on it.

    Similar in poll your return 0 now while the generic code return
    (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM) for fds without ->poll, and
    again I'd say current drm behaviour could be considered a bug.

    for ->flush there's no behaviour change of not supplying it.

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Alan Cox: "Re: Core scsi layer crashes in 2.6.8.1"

    Relevant Pages

    • Re: AGP problem SiS 746FX Linux 2.6.5-rc3
      ... the Empire squashes the Federation like a bug. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.9bk6 msdos fs OOPS
      ... >This bug is triggered by race condition. ... Apparently my lashup doesn't trigger it. ... Copyright 2004 by Maurice Eugene Heskett, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [patch 0/3] j_state_lock, j_list_lock, remove-bitlocks
      ... BUG: Unable to handle kernel NULL pointer dereference at virtual address ... TAS_BUFFER_FNS(RevokeValid, revokevalid) ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: BUG at mm/memory.c:1501 in 2.6.0-test5
      ... >Any module running inside the kernel can destroy anything. ... A simple bug in any ... You should send your report to the vendor. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: kernel BUG at page_alloc.c
      ... Marcelo Tosatti wrote: ... > Its the third or fourth report like this I see, ... CONFIG_GRKERNSEC_PAX_MPROTECT) and i don't remember seeing such BUG... ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)