<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 11, 2015 at 2:29 PM, Gerd Hoffmann <span dir="ltr"><<a href="mailto:kraxel@redhat.com" target="_blank">kraxel@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Do, 2015-06-11 at 11:18 +0800, John Hunter wrote:<br>
> Hi Gerd,<br>
</span><span class="">> Here is what I got:<br>
><br>
><br>
> [  813.137939] [drm:drm_pci_init]<br>
> [  813.142780] [drm:drm_get_pci_dev]<br>
> [  813.156986] [drm:drm_minor_register]<br>
> [  813.212679] [drm:drm_minor_register] new minor registered 64<br>
> [  813.213341] [drm:drm_minor_register]<br>
> [  813.215081] [drm:drm_minor_register]<br>
> [  813.235736] [drm:drm_minor_register] new minor registered 0<br>
> [  813.252701] [drm] Found bochs VGA, ID 0xb0c0.<br>
> [  813.254993] [drm] Framebuffer size 8192 kB @ 0xfe000000, ioports @<br>
> 0x1ce.<br>
> [  813.271384] [TTM] Zone  kernel: Available graphics memory: 513150<br>
> kiB<br>
> [  813.272036] [TTM] Initializing pool allocator<br>
> [  813.279538] [TTM] Initializing DMA pool allocator<br>
> [  813.299800] [drm:drm_sysfs_connector_add] adding "Virtual-1" to<br>
> sysfs<br>
> [  813.303164] [drm:drm_sysfs_hotplug_event] generating hotplug event<br>
> [  813.313079] [drm] Initialized bochs-drm 1.0.0 20130925 for<br>
> 0000:00:02.0 on minor 0<br>
<br>
</span>Looks good.<br>
<span class=""><br>
> If I remove the bochs-drm.ko from its place, then boot the virtual<br>
> machine, after it runs,<br>
> copy the bochs-drm.ko to its original place, depmod the module, and<br>
> modprobe<br>
> bochs-drm, it give the messages above. Seems like the bochs driver<br>
> works, but<br>
> if I reboot with the bochs-drm.ko, it goes to dark, and the messages<br>
> related to bochs<br>
> is same as above.<br>
<br>
</span>Hmm, behavior should be the same no matter whenever it is loaded<br>
automatically at boot time or manually later on.<br>
<br>
You can blacklist the module in modprobe.conf if you want prevent it<br>
from autoloading btw.<br>
<span class=""><br></span></blockquote><div>Thanks for the information</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
> I guess the problem is because that I take no care of bochs_hw_setbase<br>
> after remove<br>
> the bochs_crtc_mode_set_base, but I am not sure.<br>
<br>
</span>Possibly, programming the hardware needs to happen at some point ...<br>
Stick a printk in there to see whenever it is called or not.<br>
<br>
But remember you don't have a framebuffer console because fbcon is<br>
turned off.  So not having VTs is normal (and thats why you need the<br>
serial console ...)<br>
<br>
What happens if you start X?<br>
<span class=""><br></span></blockquote><div>I think in the distro (debian 7) it runs X automatically</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
> I will be appreciate if you can review the patch a bit and tell me<br>
> where the problem<br>
> might be, and I will dig more into that.<br>
<br>
</span>Well, it's your gsoc project, not mine.</blockquote><div>I guess I have asked a stupid question :) , sorry about that. </div><div>Anyway, I will try to figure it out.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
cheers,<br>
  Gerd<br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Best regards<br></div><div>Junwang Zhao</div><div>Microprocessor Research and Develop Center</div><div>Department of Computer Science &Technology</div><div>Peking University</div><div>Beijing, 100871, PRC</div></div></div>
</div></div>