daily CVS update output

2021-12-25 Thread NetBSD source update


Updating src tree:
P src/external/ibm-public/postfix/Makefile.inc
P src/sbin/wsconsctl/Makefile
P src/sbin/wsconsctl/display.c
P src/sbin/wsconsctl/util.c
P src/sbin/wsconsctl/wsconsctl.h
P src/sys/dev/usb/ukbd.c
P src/sys/dev/videomode/edid.c
P src/sys/dev/videomode/vesagtf.c
P src/usr.bin/xlint/lint1/lex.c
P src/usr.bin/xlint/lint1/lint1.h
P src/usr.bin/xlint/lint1/mem1.c

Updating xsrc tree:
P xsrc/external/mit/xdm/dist/config/Xsession.in
P xsrc/external/mit/xinit/dist/xinitrc.cpp


Killing core files:




Updating file list:
-rw-rw-r--  1 srcmastr  netbsd  41198096 Dec 26 03:03 ls-lRA.gz


Re: HEADS UP: Merging drm update

2021-12-25 Thread Taylor R Campbell
> Date: Sun, 26 Dec 2021 02:37:31 +0900
> From: Ryo ONODERA 
> 
> If panic is removed, my LCD turns black finally and stay black forever
> and does not reach to USB serial console.
> [...]
> However I am not sure because I cannot get any message.
> 
> Do you have an idea to investigate deeper?

Does your laptop have anything like Intel AMT which you could use to
get serial-over-LAN?

Maybe you can put in a panic later, after the display changes, and
build your kernel with DDB_COMMANDONENTER="bt;sync", so you might be
able to either (a) get a crash dump or (b) see the last boot's dmesg
when the machine resets (and you then boot an older kernel)?


Re: HEADS UP: Merging drm update

2021-12-25 Thread Ryo ONODERA
Hi,

Ryo ONODERA  writes:

> Hi,
>
> Taylor R Campbell  writes:
>
>> Better yet -- can you try the attached patch?
>> From e484fe666999730543f490ce6084486f7d7ce524 Mon Sep 17 00:00:00 2001
>> From: Taylor R Campbell 
>> Date: Fri, 24 Dec 2021 11:12:43 +
>> Subject: [PATCH] i915: Use AcpiOsMapMemory, not bus_space_map, for opregion.
>>
>> Needed because this appears in firmware-type memory mappings, which
>> are excluded from bus_space_map.
>>
>> XXX pullup-9 (via manual patch since the code has changed a bit)
> (snip)
>
> Thank you very much.
>
> Your attached patch seems to be committed already.
> I have updated my src tree and build, boot the latest kernel.
> And the LCD turns black forever at different point.
> However I cannot see the last message from the kernel.
>
> Something goes wrong and i915drmkms does not work for my laptop yet.
> I will try to find a problematic point.

I915_WRITE_FW(PLANE_SURF(pipe, plane_id), 0); in line 687 turns
my LCD to yellow (rarely to blue).
If panic is removed, my LCD turns black finally and stay black forever
and does not reach to USB serial console.

   668  static void
   669  skl_disable_plane(struct intel_plane *plane,
   670const struct intel_crtc_state *crtc_state)
   671  {
   672  printf("Enter %s\n", __func__);
   673  struct drm_i915_private *dev_priv = to_i915(plane->base.dev);
   674  enum plane_id plane_id = plane->id;
   675  enum pipe pipe = plane->pipe;
   676  unsigned long irqflags;
   677
   678  spin_lock_irqsave(&dev_priv->uncore.lock, irqflags);
   679
   680  if (icl_is_hdr_plane(dev_priv, plane_id))
   681  I915_WRITE_FW(PLANE_CUS_CTL(pipe, plane_id), 0);
   682
   683  skl_write_plane_wm(plane, crtc_state);
   684
   685  I915_WRITE_FW(PLANE_CTL(pipe, plane_id), 0);
   686  panic("Before turning yellow");
   687  I915_WRITE_FW(PLANE_SURF(pipe, plane_id), 0);
   688
   689  spin_unlock_irqrestore(&dev_priv->uncore.lock, irqflags);
   690  }

I think that line 687 completes disabling primary plane
and followed logics will not able to enable the plane.
However I am not sure because I cannot get any message.

Do you have an idea to investigate deeper?

Thank you.

-- 
Ryo ONODERA // r...@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3