From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from viefep18-int.chello.at ([213.46.255.22] helo=viefep23-int.chello.at) by www.linuxtv.org with esmtp (Exim 4.63) (envelope-from ) id 1Js28B-0002yz-Qm for linux-dvb@linuxtv.org; Fri, 02 May 2008 22:45:25 +0200 Received: from [192.168.1.157] (really [77.57.60.184]) by viefep23-int.chello.at (InterMail vM.7.08.02.00 201-2186-121-20061213) with ESMTP id <20080502204448.FHS14978.viefep23-int.chello.at@[192.168.1.157]> for ; Fri, 2 May 2008 22:44:48 +0200 Message-ID: <481B7D43.2050200@hispeed.ch> Date: Fri, 02 May 2008 22:44:51 +0200 From: Roland Scheidegger MIME-Version: 1.0 To: linux-dvb@linuxtv.org Content-Type: multipart/mixed; boundary="------------090406000801010408020202" Subject: [linux-dvb] mantis crash... List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-dvb-bounces@linuxtv.org Errors-To: linux-dvb-bounces+mchehab=infradead.org@linuxtv.org List-ID: This is a multi-part message in MIME format. --------------090406000801010408020202 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit This was reported before, the current mantis driver will cause a page fault in mantis_dvb_start_feed. The reason for this is commit f5b1f9d491bfabbd23ec415e647f3d65ea1930eb "Implement HIF Mem Read/Write operations". I don't know how HIF memory reads/writes are supposed to work, but there seems to be some mixup between register contents and register addresses. Clearly, 0xfffffff is not a valid mmaped reg address and as such writing to it blows up accordingly. The attached patch fixes that (reverts part of the above commit). The same bug also seems to be present in the hif.c file, though I don't know how it should work there (and it looks like that code won't get touched here). Roland --------------090406000801010408020202 Content-Type: application/mbox; name="mantisdma.diff" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="mantisdma.diff" LS0tIGEvbGludXgvZHJpdmVycy9tZWRpYS9kdmIvbWFudGlzL21hbnRpc19kbWEuYwlXZWQg QXByIDE2IDE1OjIyOjE2IDIwMDggKzA0MDAKKysrIGIvbGludXgvZHJpdmVycy9tZW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lRJU19GSUZPX0VOIHwKIAkJCQkJICAgIE1BTlRJU19EQ0FQX0VOIHwK --------------090406000801010408020202 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-dvb mailing list linux-dvb@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb --------------090406000801010408020202--