Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Signed-off-by: Philippe Langlais <philippe.langlais@stericsson.com>
|
|
Handles the scenario where the modem wakes up the APE and the modem
irq is serviced before the IPC driver is resumed. The event is
regsitered and serviced later when the driver resume hook is called.
ST-Ericsson ID: 405458
ST-Ericsson FOSS-OUT ID: Trivial
ST-Ericsson Linux next: NA
Change-Id: I441decea1cbc657e8dc13ca63a3116f50581c6a7
Signed-off-by: Chris Blair <chris.blair@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/44410
Reviewed-by: QATOOLS
Reviewed-by: QABUILD
Reviewed-by: Rickard EVERTSSON <rickard.evertsson@stericsson.com>
Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
|
|
ac_sleep_disable_count is flag used t control the power management state machine
this counter is increased in 3 places
ca_wake_req
ac_msg_pend_notify_0
ac-msg_pend_notify_1
and decremented in 3 places
ac_read_notify_0
ac_read_notify_1
ca_sleep_req
ac_msg_pend_notify is called from 2 places,
shm_write_msg
ac_read_notify
it gets called from "shm_write_msg" when there is only one message in the shared
memory and otherwise from "ac_read_notify"
LOGS
<6>[ 72.793395] send_ac_msg_pend_notify_1_work I:2
<6>[ 72.793609] shm_ac_read_notif_1_tasklet D:1
<6>[ 72.793731] send_ac_msg_pend_notify_1_work I:2
<6>[ 72.793853] send_ac_msg_pend_notify_1_work I:3
<6>[ 72.793914] shm_ac_read_notif_1_tasklet D:2
<6>[ 72.804840] send_ac_msg_pend_notify_1_work I:3
<6>[ 72.805053] shm_ac_read_notif_1_tasklet D:2
From the above logs send_ac_msg_pend_notify_1_work is called twice. No problem
if this is called twice, but for state machine counter ac_sleep_disable_count
this causes problem which doesnt allow the system to enter sleep.
This function is called twice in a real time seq, first time from the
ac_read_notify, here assume that there is only one message, and hence after
notifying modem will call ac_msg_pend_notify. Modem on receiving this interrupt
will update the shared read pointer and send the ack. After updating the shared
read pointer and before APE receiving the ACK, there is some msg write req
coming to shrm. shm driver shm_write_msg is called. Here it finds that this is
the only message in shared memory, because the shared read and write pointer are
same. Hence send_ac_msg_pend_notify_1_work is called again. Even though msg_pend
is notified twice we receive read_notification only onece.
Counter ac_sleep_disable_count is incremented in ca_wake_req to 1. Then in
ac_msg_pend_notify to 2, then decremented in ac_read_notify. Hence it doesnt
increase beyond 2
Fix would be to check if ac_msg_pend is called twice before ac_read_notify is
received, then in that case dont increment the ac_sleep_disable_count in
ac_msg_pend_notify.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 401826
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ie4ed0ae33b011a798d620a8db531fad8c23b1d7a
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/43169
Reviewed-by: Bibek BASU <bibek.basu@stericsson.com>
Reviewed-by: QABUILD
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
Adds the implementation of the driver protocol state machine.
ST-Ericsson ID: 369397
ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-12224
ST-Ericsson Linux next: NA
Change-Id: Iffa99154ab2d3f0150c96c7bc535ffe26f6988db
Signed-off-by: Chris Blair <chris.blair@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/36501
Reviewed-by: QATOOLS
Reviewed-by: QABUILD
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Adds netlink support to the modem driver. Userspace can send requests
for status on the link and they can subscribe for broadcasrs on the
link.
ST-Ericsson ID: 369397
ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-12224
ST-Ericsson Linux next: NA
Change-Id: I9159080c7337498368da759ca2b20106dd41381c
Signed-off-by: Chris Blair <chris.blair@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/36499
Reviewed-by: QATOOLS
Reviewed-by: QABUILD
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Adds the net device interface from the modem to userspace.
ST-Ericsson ID: 369397
ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-12224
ST-Ericsson Linux next: NA
Change-Id: Ib1cafdc1558305d808870b0fdafa8e7029ec5a6b
Signed-off-by: Chris Blair <chris.blair@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/36494
Reviewed-by: QATOOLS
Reviewed-by: QABUILD
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
ape_req interrupt is not to be used as mailbox interrupt serves as a
wakeup interrupt to ARM.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 402718
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I069bfb6b93fdb02b6ce106bfccba23820d6284b8
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/43026
Reviewed-by: QATOOLS
Reviewed-by: Bibek BASU <bibek.basu@stericsson.com>
Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
|
|
A new shared-mem IPC logical channel (mapID=200) allows APE
to send and receive messages to the modem in support of the
calibration of the RealTimeClock.
The modem can measure the 32KHz clock drift (against network clock)
and report the drift to the APE. This new logical channel supports
this reporting and can be accessed via a new /dev/rtc_calibration
device.
ST-Ericsson ID: 362204
ST-Ericsson Linux next: NA
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ic0ed097c1bbd8b3a6816642840c258e598b79715
Signed-off-by: Mark Godfrey <mark.godfrey@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/36440
Reviewed-by: QATOOLS
Reviewed-by: QABUILD
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
change write permissions for syfs attributes
to user only, give only read permissions
for group and others.
Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com>
|
|
Adds the char device interface from the modem to userspace.
ST-Ericsson ID: 369397
ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-12224
ST-Ericsson Linux next: NA
Change-Id: Ia0a5e8a8e95f28ee4a812795db91dc872b39f560
Signed-off-by: Chris Blair <chris.blair@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/36491
Reviewed-by: QATOOLS
Reviewed-by: QABUILD
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Use prcmu_read instead of global prcmu address variable.
ST-Ericsson Linux next: -
ST-Ericsson ID: 370799
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I55db2ab4d2fdc647e03791b88c1669bef62d07f5
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/39654
|
|
Reduce the timeout to 2sec for now as modem doesnt go to sleep.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 400364
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Icd9fed7b22d23d000aecf7643b0664fcd4ed2905
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/40785
Reviewed-by: QATOOLS
Reviewed-by: QABUILD
Reviewed-by: Bibek BASU <bibek.basu@stericsson.com>
Tested-by: Bibek BASU <bibek.basu@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
API that can be used by modem control driver to reset the mailbox state
on receiving the modem reset interrupt. This APE will be called in case
of modem silen reboot.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 341807
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Idc7e4eeeaa410185d34c1be9abcb59f4dd0a60af
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/39815
Reviewed-by: Bibek BASU <bibek.basu@stericsson.com>
Reviewed-by: QABUILD
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
Adds the debug related functionality for the modem driver.
ST-Ericsson ID: 369397
ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-12224
ST-Ericsson Linux next: NA
Change-Id: I1b1144dd01b574410a86d34169e01621f56271cb
Signed-off-by: Chris Blair <chris.blair@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/36486
Reviewed-by: QATOOLS
Reviewed-by: QABUILD
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Adds the IPC driver TX queue related functionality
ST-Ericsson ID: 369397
ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-12224
ST-Ericsson Linux next: NA
Change-Id: I09982aea887877b7793e17edb250d2c9ea9b2996
Signed-off-by: Chris Blair <chris.blair@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/36484
Reviewed-by: QATOOLS
Reviewed-by: QABUILD
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Adds utility functions to be used by the IPC protocol.
ST-Ericsson ID: 369397
ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-12224
ST-Ericsson Linux next: NA
Change-Id: I27a1329b980f69671c7ae7f2c975ade80d6aa409
Signed-off-by: Chris Blair <chris.blair@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/36479
Reviewed-by: QATOOLS
Reviewed-by: QABUILD
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Adds the M6718 modem IPC SPI driver procotol framework and types.
Placeholders remain where future parts of the protocol will be
called.
ST-Ericsson ID: 369397
ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-12224
ST-Ericsson Linux next: NA
Change-Id: Id4cd5a7fa730c06838c9dd5b1a1cc0045135fdd4
Signed-off-by: Chris Blair <chris.blair@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/36466
Reviewed-by: QATOOLS
Reviewed-by: QABUILD
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
While writing to the modem GOP registers, check if modem is in reset
else writing to GOP registers while modem being in reset will lead
to system dreeze.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 375164
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ic4534c1b9c9eee09eb09fad298adddc6bfcb7c3f
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/39433
Reviewed-by: QABUILD
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
On shrm receiving modem reset interrupt, it will disable interrupts and
schedule a tasklet for initiating MSR if enabled. The tasklet function
includes stopping the network queue. But as soon as ISR is served, if
phonet starts ending message, shrm will return with a -ve value. Hence
phonet retries sending the same message again. This will lead to a dedlock
and finally ends up with a watchdog timeout.
Hence stop the network queue on receiving modem reset interrupt in the
interrupt handler.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 375164
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Id608024590cea26e15f04afa7786e245825da2ed
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/39434
Reviewed-by: Bibek BASU <bibek.basu@stericsson.com>
Tested-by: Bibek BASU <bibek.basu@stericsson.com>
Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
|
|
Implement a protocol for APE - Modem communication which helps in
achieving system power management.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 350108
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Id42b0d50d118d5d3215a60f3123c365db20cfc6b
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/36183
Reviewed-by: Bibek BASU <bibek.basu@stericsson.com>
Reviewed-by: QATOOLS
Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
|
|
Detects modem crashdump ready and informs userspace
ST-Ericsson Linux next: NA
ST-Ericsson ID: 354626
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I204eeb48b7353509b07b9e3c6ec08bc7026985fa
Signed-off-by: Bibek Basu <bibek.basu@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34170
Reviewed-by: QATOOLS
Reviewed-by: QABUILD
Reviewed-by: Sandeep TRIPATHY <sandeep.tripathy@stericsson.com>
Tested-by: Sandeep TRIPATHY <sandeep.tripathy@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
Adds the modem state driver to the M6718 modem IPC interface.
ST-Ericsson ID: 369397
ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-12224
ST-Ericsson Linux next: NA
Change-Id: I5566277b950aa0be954f4350bdc1ed38c7afd7d8
Signed-off-by: Chris Blair <chris.blair@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/36434
Reviewed-by: Derek MORTON <derek.morton@stericsson.com>
Reviewed-by: QATOOLS
Reviewed-by: Andrew LYNN <andrew.lynn@stericsson.com>
Reviewed-by: QABUILD
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Adds support for the M6718 modem IPC SPI driver. This patch adds the
spi driver under which the protocol will be added.
ST-Ericsson ID: 369397
ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-12224
ST-Ericsson Linux next: NA
Change-Id: Ifa60efa9cb6a9d30b02b88b563624a293bc0930c
Signed-off-by: Chris Blair <chris.blair@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/36433
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Adds support for the STE M6718 modem to the modem access framework.
ST-Ericsson ID: 369397
ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-12224
ST-Ericsson Linux next: NA
Change-Id: Iefbd8db9a7ab77c21fb09cbb3699a7d34ee555e1
Signed-off-by: Chris Blair <chris.blair@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/36316
Reviewed-by: QATOOLS
Reviewed-by: QABUILD
Reviewed-by: Andrew LYNN <andrew.lynn@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Releases the mutex when the requested modem is not found.
ST-Ericsson ID: 369397
ST-Ericsson FOSS-OUT ID: Trivial
ST-Ericsson Linux next: NA
Change-Id: Iee00b1dd24251afcff31ce2e03f07832e26ac725
Signed-off-by: Chris Blair <chris.blair@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/36315
Reviewed-by: Andrew LYNN <andrew.lynn@stericsson.com>
Reviewed-by: QABUILD
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Workqueue updates no longer guarantee fixed workqueue to worker
kthread association, so giving RT priority to the irq worker won't
work. Use kthread_worker which guarantees specific kthread association
instead. This also makes setting the priority cleaner.
ST-Ericsson ID: 361756
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Id54eafae1391ef8b09e93a4815efa1b674d3d90d
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/36062
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Reviewed-by: QABUILD
Tested-by: Christoffer LONNERFORS <christoffer.lonnerfors@stericsson.com>
Reviewed-by: Arun MURTHY <arun.murthy@stericsson.com>
|
|
Number of DSP read buffers has ben increased to 16
to avoid message loss when system waking up.
Updated check for message pending with atomic_dec_return
API which is more proper in this case.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 367390
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I99ef44ead99a2b9eb856c01e025423a990b0ba98
Signed-off-by: Bibek Basu <bibek.basu@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/36973
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
atomic_dec_and_test wrongly used.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 367390
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I37ffaa0afd6df3472469842925030e8a04a42a6b
Signed-off-by: Bibek Basu <bibek.basu@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/36026
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
Mad driver updated with de-registering of RX
channel with the mailbox.Moved unmap of shared
memory out of mad_close function.
ST-Ericsson Linux next: -
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I50351e594d746f5c2891a86351407a5bf8f934ab
Signed-off-by: Haridhar Kalvala <haridhar.kalvala@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35913
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
Increase priority of workqueues to realtime in order to keep correct timing
for audio messages send to modem.
This patch was submitted on 2.6.35 by "cedric.izoard@stericsson.com".
Now it has been ported to kernel-3.0.0
ST-Ericsson ID : ER361756
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I62e8244496cb9bc64b29b0013745d30bffb26f6b
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34050
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
Signed-off-by: Philippe Langlais <philippe.langlais@stericsson.com>
|
|
Signed-off-by: Philippe Langlais <philippe.langlais@stericsson.com>
|